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

PLAYER X LEVEL MOVE TO X PLACE

quirknepx

New Member
Joined
Aug 28, 2010
Messages
17
Reaction score
3
Can someone help me make an script when a player reaches ie. 200 level, automatically teleport him to (x,y,z) place?
 
Code:
local level = 200
local pos = {x = 1000, y = 1000, z = 7}

function onAdvance(cid, skill, oldLevel, newLevel)
if getPlayerLevel(cid) => level then
    if getPlayerStorageValue(cid, 1421) == -1 then
        doTeleportThing(cid, pos)
        doPlayerSetStorageValue(cid, 1421, 1)
        end
    return true
end

Something like that
 
Back
Top