31.03.2013, 00:18
Yeah use Private200's code. Except he made a mistake that ill fix :P
fixed
pawn Код:
// On top of the script
new CommandWaiting[MAX_PLAYERS];
// On the command
COMMAND:armour(playerid, params[])
{
if(CommandWaiting[playerid] == 0);
{
CommandWaiting[playerid] = 1;
SetPlayerArmour(playerid, 100);
SetTimerEx("waiting", 180000, false,"i",playerid);
}
else
SendClientMessage(playerid, 0xAA3333AA, "You are allowed to use this command only 1 time every 3 minutes");
return 1;
}
forward waiting(playerid);
public waiting(playerid)
{
CommandWaiting[playerid] = 0;
return 1;
}