12.09.2013, 15:05
can i do if someone type /kill and try to type it agian after die in same time hes got message like "You can use this cmd after 3:00min" 
sorry for my suck english :/

sorry for my suck english :/
forward KillCommandTimer(playerid); // at the top
new KillCommand[MAX_PLAYERS]; // still at the top
public KillCommandTimer(playerid)
{
GameTextForPlayer(playerid, "You can now use /kill again", 3000, 6);
KillCommand[playerid] = 0;
return 1;
}
if(KillCommand[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "You can only use this command once every 3 minutes.");
SetTimerEx("KillCommandTimer", 180000, false, "i", playerid);
KillCommand[playerid] = 1;
Yes, set a timer... i.e.:
pawn Код:
pawn Код:
pawn Код:
|