#1

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;
        }
    }
Reply
#2

60000.
Reply
#3

Yes, that number is in milliseconds, there are 1000 milliseconds in a second and 60000 in a minute, like SuperViper said
Reply
#4

k,Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)