• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Anty-Moving Exhaustion (using ctrl+arrows)

Galaxy

New Member
Joined
Feb 24, 2011
Messages
108
Reaction score
1
Location
Ireland/Carlow
Is there a script that prevents players from moving around using CTRL + ARROWS?

Like, exhaustion for moving.. If player moves fast, it will exhaust him for like 4 seconds... :)

If there is a script for that, will it be for creaturescript? Please explain to me where should I paste it :)

Thank you :)
 
but i still dont know how to do it...

edit

i found something like that in the internet... But they didnt say into which folder does it go... ;/

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
 
Last edited:
<event type="direction" name="nodance" event="script" value="nodance.lua/>"
<event type="login" name="no_dance" event="script" value="nodance.lua/>"

local exhaust = {
storage = 2152,
seconds = 5
}

function onLogin(cid)
registerCreatureEvent(cid, 'nodance')
return true
end

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

Use this..
 
Back
Top