Mins - 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: Mins (
/showthread.php?tid=434125)
Mins -
DerickClark - 01.05.2013
i have a /tmute [id] [mins]
But i need the Mins.
is dis a min?
60000
or
1000
Код:
if(gMuted[playerid])
{
if(GetTickCount() < gMuted[playerid])
{
new
tmp[64];
format(tmp, sizeof tmp, "Muted!, %d seconds remaining",
((gMuted[playerid] - GetTickCount()) / 1000));
SendClientMessage(playerid, 0xFF0000FF, tmp);
return false;
} else
{
gMuted[playerid] = 0;
}
}
Re: Mins -
SuperViper - 01.05.2013
60000.
Re: Mins -
MattyG - 01.05.2013
Yes, that number is in milliseconds, there are 1000 milliseconds in a second and 60000 in a minute, like SuperViper said
Re: Mins -
DerickClark - 01.05.2013
k,Thanks.