SA-MP Forums Archive
Gundrop/timer on command - 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: Gundrop/timer on command (/showthread.php?tid=364197)



Gundrop/timer on command - Mikkel_RE - 29.07.2012

Hey, im making a gundrop system on my server, and i want to make a timer on the command so when you type /pickgun, it takes 3 seconds before you pick up the gun. How do i make that timer?


Re: Gundrop/timer on command - milanosie - 30.07.2012

By setting it and executing the command inside the callback of the timer.

Heeey

[pawn]
SetTimerEx("somename", time, false, "i", playerid);