Can't write the same command for 1 min ?
#5

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;
}
Reply


Messages In This Thread
Can't write the same command for 1 min ? - by Bumper - 25.07.2010, 16:12
Re: Can't write the same command for 1 min ? - by Shadow™ - 25.07.2010, 16:20
Re: Can't write the same command for 1 min ? - by Bumper - 25.07.2010, 16:30
Re: Can't write the same command for 1 min ? - by Shadow™ - 25.07.2010, 16:31
Re: Can't write the same command for 1 min ? - by Fj0rtizFredde - 25.07.2010, 16:36
Re: Can't write the same command for 1 min ? - by Shadow™ - 25.07.2010, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)