{HELP} - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: {HELP} (
/showthread.php?tid=126118)
{HELP} -
Keeboo13 - 07.02.2010
how can i add a timer so the player goes to another position after 10 secs
SetPlayerCameraPos(playerid, 0.4966,25.3226,1199.593
![Cool](images/smilies/cool.gif)
;
SetPlayerCameraLookAt(playerid, 1.9569,32.0240,1199.593
![Cool](images/smilies/cool.gif)
;
SetPlayerPos(playerid, 0.4966,25.3226,1199.593
![Cool](images/smilies/cool.gif)
;
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid,1)
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid,"PED","SEAT_down",4.1,0,1,1,1 ,0);
SendClientMessage(playerid, COLOR_WHITE, "We Are in Our Way To Your Destination");
Re: {HELP} -
mansonh - 07.02.2010
https://sampwiki.blast.hk/wiki/SetTimerEx
SetTimerEx("yourfuctionname",10000, true, "d", playerid);
This will call "yourfunctionname" every 10 second(10000ms), repeatedly(true), and send the variables "d", playerid.
public yourfunctionname(playerid)
{
...
}