• 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!

TalkAction help with this talkactions

djblah

Active Member
Joined
Oct 15, 2010
Messages
129
Solutions
2
Reaction score
25
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



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
 
Back
Top