Forsaken13126
Scripter
I was trying to create a broadcast script for players(i also want to add in so you need first prestige to use it later) and when i was just trying to test it, it says it loads correctly no errors then i type it in game and it does nothing... still no error in server log i want a 5 minute exhaust so people cannot spam.... If anyone could help me fix this script or if they have another working one it would be greatly appreciated thanks alot
(Works for staff but not regular players)
my talkaction script V
My playerbroadcast.lua V
(Works for staff but not regular players)
my talkaction script V
Code:
<talkaction words="/broadcast" script="playerbroadcast.lua"/>
My playerbroadcast.lua V
Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 300000) -- time in seconds x1000
function onSay(cid, words, param, channel)
if(param == '') then
return true
end
doPlayerBroadcastMessage(cid, param)
return true
end