limit for cmds
#8

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
ups, wrong directions xD
PHP код:
if(GetTickCount()-Healed[playerid] < 2*60*1000) return SendClientMessage(playerid, -1"You have to wait 2 minutes to use this command again!"); 
it worked, but what about this?! why it doesn't work
Quote:

CMD:checkhacker(playerid, params[])
{
new toplayerid, hacktimer[MAX_PLAYERS];
if(GetTickCount()-hacktimer[playerid] < 5000) return SendClientMessage(playerid, RED, "Don't Spam This Command!");
if(pInfo[playerid][Admin] <= 0) return SendClientMessage(playerid, RED, "ERROR: You Aren't High Level Enough To Use This Command");
if(sscanf(params, "u", toplayerid)) return SendClientMessage(playerid, -1, "ERROR: /checkhacker [playerid]");

Reply


Messages In This Thread
limit for cmds - by ahmedraed - 18.11.2015, 11:14
Re: limit for cmds - by IceBilizard - 18.11.2015, 11:19
Re: limit for cmds - by ahmedraed - 18.11.2015, 11:41
Re: limit for cmds - by AbyssMorgan - 18.11.2015, 13:51
Re: limit for cmds - by ahmedraed - 18.11.2015, 19:44
Re: limit for cmds - by AbyssMorgan - 18.11.2015, 19:47
Re: limit for cmds - by Jefff - 18.11.2015, 20:04
Re: limit for cmds - by ahmedraed - 18.11.2015, 20:10
Re: limit for cmds - by ahmedraed - 19.11.2015, 16:41
Re: limit for cmds - by TwinkiDaBoss - 19.11.2015, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)