Code:
local t = {
waitingroom = {x = 32300, y = 32026, z = 12},
}
function onStepIn(cid, item, position, lastPosition)
doTeleportThing(cid, t.waitingroom)
doSendMagicEffect(t.waitingroom, CONST_ME_TELEPORT)
if (getGlobalStorageValue(25002) < 0) then
setGlobalStorageValue(25002,1)
setPlayerStorageValue(cid, 25001, 1)
broadcastMessage("Player "..getCreatureName(cid).." joined Last man standing event!", MESSAGE_STATUS_WARNING)
else
setGlobalStorageValue(25002,getGlobalStorageValue(25002)+1)
setPlayerStorageValue(cid, 25001, 1)
broadcastMessage("Player "..getCreatureName(cid).." joined Last man standing event!", MESSAGE_STATUS_WARNING)
end
end
how change to only 150 + level can join teleport ?
help