• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

!broadcast "~msg here~

I r New

New Member
Joined
Feb 1, 2008
Messages
137
Reaction score
1
Can somone please make me broadcast talk action, so when u say !broadcast ~msg here~ it takes 3cc and broadcasts a msg ;D

Thankyou.
 
try that it's not tested.

Code:
function onSay(cid, words, param)
local money = 30000
	if param ~= nil then
		if doPlayerRemoveMoney(cid,money) == TRUE then
			doBroadcastMessage("".. getCreatureName(cid) .."[".. getPlayerLevel(cid) .."]:".. param .."",MESSAGE_STATUS_CONSOLE_RED)
		else
			doPlayerSendCancel(cid,"You don't have enough money.")
		end
	else
		doPlayerSendCancel(cid,"Param can't be nil.")
	end
	return FALSE
end

kind regards, Evil Hero
 
TY so much, i tested it and it only broadcasts in the console but it goes everywhere, I wanted it to be like a gm Broadcast and go into the middle of the screen, but ty anyway and good work ;D
 
Last edited:
Back
Top