I wrote a script that, when pressed on the levers, teleports me to place X
I would like to add scripts to this line but I can not do it, I searched the internet and unfortunately some errors every time
1) only 1 player can enter place X.
2) the player after entering X can stay for 10 minutes.
3) after 10 minutes, automatically teleport to temple 161,51.7.
My script:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1010 then
doTeleportThing(cid,{x=366, y=8, z=9})
doPlayerSendTextMessage(cid,25, "Go")
else
return 0
end
return 1
end
I would like to add scripts to this line but I can not do it, I searched the internet and unfortunately some errors every time
1) only 1 player can enter place X.
2) the player after entering X can stay for 10 minutes.
3) after 10 minutes, automatically teleport to temple 161,51.7.
My script:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1010 then
doTeleportThing(cid,{x=366, y=8, z=9})
doPlayerSendTextMessage(cid,25, "Go")
else
return 0
end
return 1
end