can anyone help me with that script?
this script should tp player on trainers after 15 min training to the x y z position :d but how i can set place where are trainers
in this script?? it mean that in console i havent any bugs but in game it doesnt tp me :s becouse propably i must set position ( train room where players are training
ofc 15 minutes i set up in globalevents.xml
PHP:
function onThink(interval)
for _, cid in ipairs(getPlayersOnline()) do
if (getPlayerStorageValue(cid, 1337) == 1) then
doPlayerPopupFYI(cid, "W celu sprawdzenia twojej obecnosci przed komputerem zostales wywalony z train room.")
doTeleportThing(cid, {x=1100, y=1217, z=7})
setPlayerStorageValue(cid, 1337, 0)
db.executeQuery("UPDATE `players` SET `players`.`train` = 0 WHERE `players`.`id` = " .. getPlayerGUID(cid))
end
end
return TRUE
end
this script should tp player on trainers after 15 min training to the x y z position :d but how i can set place where are trainers
in this script?? it mean that in console i havent any bugs but in game it doesnt tp me :s becouse propably i must set position ( train room where players are training
ofc 15 minutes i set up in globalevents.xml