watkins577
As3, lua, xml scripter
- Joined
- Sep 20, 2008
- Messages
- 130
- Reaction score
- 0
Ok I made a script that if someone steps on a tile, they get teleported to an island. After 50 seconds you get a warning and after 10 more seconds you get teleported off the island back to just before the tile you step on. However... If someone else goes through after you, only the other person will get the warning and get teleported.
Heres my script...
Can anyone help?
Heres my script...
Code:
function onStepIn(cid, item, pos)
ppos = {x=248, y=225, z=7}
doTeleportThing(cid, ppos, TRUE)
doPlayerSendTextMessage(cid, 25, "You seem to be on a new island!")
addEvent(warn, 1*50*1000, cid)
addEvent(reset, 1*60*1000, cid)
return TRUE
end
function warn(cid)
doPlayerSendTextMessage(cid, 25, "You feel yourself waking up...")
return TRUE
end
function reset(cid)
ppos2 = {x=209, y=246, z=7}
doTeleportThing(cid, ppos2, TRUE)
doPlayerSendTextMessage(cid, 25, "You wake up in a daze, with a banging headache!")
return TRUE
end
Can anyone help?