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

help can you get this script to not be able to move even after relog

hangnail

New Member
Joined
Nov 28, 2011
Messages
54
Reaction score
0
PHP:
function onPrepareDeath(cid, deathlist)

        if isPlayer(cid) then

                doCreatureSetNoMove(cid, 1)

                doSendMagicEffect(getCreaturePosition(cid), 11)

                doPlayerSetGroupId(cid, 2)

                doCreatureAddHealth(cid, 1, 65535, 256, true)   

                doCreatureAddMana(cid, 1)

                doTeleportThing(cid, getCreaturePosition(cid))

                doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have died. Your only choice of returning to this world is !revive or have a friend help you..')

                return false

    end

        return true

end
can you make this script to where you cant move even if you relog?
 
In your script above set a player storage value, then in creaturescripts/login.lua include a if player storage value = (whatever storage value you used) then doCreatureSetNoMove(cid, 1)

Cheers.
 
Back
Top