31.03.2013, 00:12
Can't understand why you don't just use the first one I gave you,,,
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);
SetTimer("waiting", 180000, false);
}
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;
}