Timer for a command
#3

Quote:
Originally Posted by FailerZ
Посмотреть сообщение
There you go:
PHP код:
//This sets a 5 seconds timer and passes the player that has used the command
SetTimerEx("StartEngineForPlayer"5000false"i"playerid); //I have changed the name to this since it is more readable.
//Place the following anywhere in the script, preferably around the command so you don't miss it. 
forward StartEngineForPlayer(playerid); //Forwards to this function so it can be called here
public StartEngineForPlayer(playerid//The actual function. Place what you want to happen after the function is called
{
    
//5 seconds passed start the engine here for the playerid

+Rep
Reply


Messages In This Thread
Timer for a command - by ItzColaBoi - 21.11.2017, 14:58
Re: Timer for a command - by FailerZ - 21.11.2017, 16:55
Re: Timer for a command - by ItzColaBoi - 21.11.2017, 17:41

Forum Jump:


Users browsing this thread: 2 Guest(s)