[Help] Timer for jobs and actions.
#4

Here is an example of what you need to use.

pawn Код:
//SetTimer is used to call public functions that do not have any parameters like OnGameModeInit
//You wouldn't call OnGameModeInit on a timer this is just an example.
SetTimer("OnGameModeInit", 1000, false);
pawn Код:
//SetTimerEx is used for functions with parameters. (again just an example).
SetTimerEx("OnPlayerDeath", 1000, true, "iii", playerid, killerid, reason);
I guess you can work out which one to use from that. You can make a public function that takes the pickupid as a parameter, then set a 45 second timer with "SetTimerEx" passing the pickupid as a parameter. Then destroy the pickup in the function.
Reply


Messages In This Thread
[Help] Timer for jobs and actions. - by Da' J' - 10.09.2011, 07:59
Re: [Help] Timer for jobs and actions. - by =WoR=Varth - 10.09.2011, 08:56
Re: [Help] Timer for jobs and actions. - by Da' J' - 10.09.2011, 09:29
Re: [Help] Timer for jobs and actions. - by iggy1 - 10.09.2011, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)