[Help] Unix timestamps with gettime
#4

Yes or do it like that:

Код:
#define COOLDOW_CMD 60000

new LastTick[MAX_PLAYERS];

COMMAND:test(playerid, params[])
{
	new tick = GetTickCount();
	if((LastTick[playerid] + COOLDOWN_CMD) >= tick)
	{
    	return SCM(playerid, -1, "Please wait a bit before using this cmd again!");
	}

 // end of the cmd:
  LastTick[playerid] = tick;
}
Reply


Messages In This Thread
[Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:07
AW: [Help] Unix timestamps with gettime - by Mellnik - 19.03.2013, 12:10
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:14
AW: [Help] Unix timestamps with gettime - by Mellnik - 19.03.2013, 12:17
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:19
Re: [Help] Unix timestamps with gettime - by Vince - 19.03.2013, 12:21
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:23
Re: [Help] Unix timestamps with gettime - by Misiur - 19.03.2013, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)