Help with my /mute command.
#1

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.
Reply
#2

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);
Reply
#3

Thanks Mp2, repped.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)