25.07.2010, 16:36
Or a more simple one:
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
if(GetPVarInt(playerid,"Wiiee") == 1) return SendClientMessage(playerid, COLOR, "You cant use this cmd right now.");
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -50);
SetPVarInt(playerid, "Wiiee", 1);
SetTimerEx("CantTalk", 60000, 0, "i", playerid);
return 1;
}
//At the bottom of your script:
forward CantTalk(playerid);
public CantTalk(playerid)
{
SetPVarInt(playerid, "Wiiee", 0);
return 1;
}