SA-MP Forums Archive
Help with my /mute 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 with my /mute command. (/showthread.php?tid=300503)



Help with my /mute command. - Azzeto - 30.11.2011

Pretty much with my /mute command it goes /mute [PartOfName/ID] [Time] but when they get muted the time goes by milliseconds, how can I make it so the number they type in mutes them for minutes? for example if I mute some one for 3 they get muted for 3 minutes and not 3 milliseconds. thanks.


Re: Help with my /mute command. - MP2 - 30.11.2011

One second is 1000 miliseconds. There are 60 seconds in a minute. 60000 miliseconds is a minute.

Set the timer to what they entered times 60000.

pawn Код:
SetTimerEx("Unmute", "ii", playerid, muteTime*60000);



Re: Help with my /mute command. - Azzeto - 30.11.2011

Thanks Mp2, repped.