xLosT
Member
this script makes a random position when login
but I want this to happen only if the player is with town_id 5
but I want this to happen only if the player is with town_id 5
PHP:
local config = {
pos = {
{ x = 1000, y = 1002, z = 7 },
{ x = 1002, y = 1001, z = 7 },
{ x = 1005, y = 1001, z = 7 }
},
min = 8
}
function onLogin(cid)
if(getPlayerLevel(cid) > config.min) then
doTeleportThing(cid, config.pos[math.random(#config.pos)])
end
return TRUE
end