SA-MP Forums Archive
[HELP] I need a timer with 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: [HELP] I need a timer with command (/showthread.php?tid=468036)



[HELP] I need a timer with command - Expert99 - 06.10.2013

Hello, I need filterscript, which will be every 30 seconds using the command: /startall. I need some Pawner, who created this script, thank you in advance

Sorry for my bad English


Re: [HELP] I need a timer with command - SilentSoul - 06.10.2013

In the top of your script add
pawn Код:
new WaitTimeForCMD[MAX_PLAYERS];
and in your cmd you want to add timer add this in the top
pawn Код:
if((GetTickCount()-WaitTimeForCMD[playerid])>6000)return SendClientMessage(playerid,-1,"ERROR: Wait 30 seconds to use this CMD again!");



Re: [HELP] I need a timer with command - Expert99 - 06.10.2013

Oh thank


Re: [HELP] I need a timer with command - Expert99 - 06.10.2013

I'm sorry, you've probably misunderstood me, I need to use the command server itself and not the player.


Re: [HELP] I need a timer with command - SilentSoul - 06.10.2013

hi , you mean command itself working without player type command for example /healme?


Re: [HELP] I need a timer with command - Expert99 - 06.10.2013

yes, i mean


Re: [HELP] I need a timer with command - SilentSoul - 06.10.2013

Oh ok I'm sorry for wrong understand , check this please https://sampwiki.blast.hk/wiki/SetTimerEx
If you need more info tell us.


Re: [HELP] I need a timer with command - Expert99 - 06.10.2013

And where is the command ? Example : Every 30 seconds, the player will get $ 10