{HELP}
#1

how can i add a timer so the player goes to another position after 10 secs



SetPlayerCameraPos(playerid, 0.4966,25.3226,1199.593;
SetPlayerCameraLookAt(playerid, 1.9569,32.0240,1199.593;
SetPlayerPos(playerid, 0.4966,25.3226,1199.593;
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");
Reply
#2

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)
{
...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)