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

dance debug script

analizer

New Member
Joined
Apr 13, 2011
Messages
63
Reaction score
2
Code:
local exhaust = {
    storage = 2152,
    seconds = 5
}
 
function onDirection(cid, old, current)
    if isPlayer(cid) then 
        if current ~= old and exhaustion.check(cid, exhaust.storage) then
            doPlayerSendCancel(cid, 'Don\'t saturate the server making flood.')
            return false
        else
            exhaustion.set(cid, exhaust.storage, exhaust.seconds)
        end
    end
    return true
end

what should I put in .xml file to make it work? And where to put it (movements? globalevents?)
 
Back
Top