hello friends I have a problem I want this talkactions,
have a say exaute 3 days can be reused after 3 days. to prevent abuse of the command
I need to reutilisar the command to a time of 3 days and after 3 days to Use U again
have a say exaute 3 days can be reused after 3 days. to prevent abuse of the command
I need to reutilisar the command to a time of 3 days and after 3 days to Use U again
HTML:
function onSay(cid, words, param)
local mode = getPlayerPVPMode(cid)
if mode == 1 then
setMode = 0
else
setMode = 1
end
if isPlayerPzLocked(cid) == FALSE and getCreatureSkullType(cid) == SKULL_NONE then
setPlayerPVPMode(cid, setMode)
if setMode == 1 then
doPlayerSendTextMessage(cid, 19, "Now you set pvp mode to on!")
else
doPlayerSendTextMessage(cid, 19, "Now you set pvp mode to off!")
end
else
doPlayerSendCancel(cid, "You cannot set pvp mode when you are agressive.")
end
return TRUE
end