I Need a Script that check if player have storage 26000 == 2
and then teleport player to temple....
i have this one, but not working...
saying this error os console
maybe someone can help me ?
this is for if player lose vip, get teleported to temple, all others needed are done, only this problem,
thanks
and then teleport player to temple....
i have this one, but not working...
PHP:
function onThink(interval, lastExecution)
local teleport = {
temple = {x=463, y=499, z=7 }
}
if getPlayerStorageValue(uid, 26000) == 2 then
doTeleportThing(cid, teleport.temple)
setPlayerGroupId(cid, 1)
setPlayerStorageValue(cid, 26000, 0)
doPlayerPopupFYI(cid, "Sua conta VIP acabou !\n\nAtive uma nova conta VIP e ajuda a manter o server ONLINE, e alem de Tudo voce ganha beneficios.")
end
return TRUE
end
saying this error os console
PHP:
[13/06/2009 15:10:27] Lua Script Error: [GlobalEvent Interface]
[13/06/2009 15:10:27] data/globalevents/scripts/removevip.lua:onThink
[13/06/2009 15:10:27] luaGetPlayerStorageValue(). Player not found
maybe someone can help me ?
this is for if player lose vip, get teleported to temple, all others needed are done, only this problem,
thanks