SA-MP Forums Archive
Timing between scripts. - 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: Timing between scripts. (/showthread.php?tid=498360)



Timing between scripts. - GrassHopper101 - 03.03.2014

Here's my code:

Код:
if(strcmp(cmdtext,"/tips",true)==0)
	{
	    SendClientMessage(playerid,green,"========================================================================================================================");
		SendClientMessage(playerid,yellow,"Major Money collectable at this Casino.");
		SetPlayerCameraPos(playerid,2045.2739,1006.9502,15.6719);
		SetPlayerCameraLookAt(playerid,2021.9420,1007.8210,20.2950);
		SendClientMessage(playerid,orange,"/FC, <-- Fix Camera.");
		SendClientMessage(playerid,green,"========================================================================================================================");

THAN AFTER 6 SECONDS HAS PASS I WANT TO DO BASICALLY THE SAME THING, JUST DIFFERENT COMMANDS.
LIKE A TUTORIAL.

	 	return 1;
	}
Thanks again to all who help!


Re: Timing between scripts. - SwisherSweet - 03.03.2014

SetTimer look it up on the wiki, It should help you, and I suggest using a function for what you are trying to do.


Re: Timing between scripts. - MP2 - 03.03.2014

Quote:
Originally Posted by SwisherSweet
Посмотреть сообщение
SetTimer look it up on the wiki, It should help you, and I suggest using a function for what you are trying to do.
SetTimerEx, because he'll need to pass a player ID.


Re: Timing between scripts. - SwisherSweet - 03.03.2014

Quote:
Originally Posted by MP2
Посмотреть сообщение
SetTimerEx, because he'll need to pass a player ID.
True, My mistake :P