SA-MP Forums Archive
Teleport on timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Teleport on timer (/showthread.php?tid=552904)



Teleport on timer - X|Dragon|X - 27.12.2014

Well, i'm working on a script alright, i wanted like after the player registers on the server, he would spawn in a bus, and after a couple of seconds he would get teleported to a specific location, I just need the part with the timer and then after the timer he would get teleported, can someone help me with that small coding?


Re: Teleport on timer - HY - 27.12.2014

Just set a timer after spawning and registering:
pawn Код:
SetTimerEx(''Position'', 5000, false, ''i'', playerid);
And timer publics:

pawn Код:
forward Position(playerid);

public Position(playerid)
{
     SetPlayerPos(playerid, Pos X, Pos Y, Pos Z);
     return 1;
}
I'm on another PC and I don't have: '' . So replace them with correct symbol in Timer.