Timer
#8

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


Messages In This Thread
Timer - by [..MonTaNa..] - 30.03.2013, 20:05
Re: Timer - by Private200 - 30.03.2013, 20:12
Re: Timer - by Abhishek. - 30.03.2013, 20:12
Re: Timer - by Ironboy - 30.03.2013, 20:15
Re: Timer - by Vlad64 - 30.03.2013, 20:17
Re: Timer - by [..MonTaNa..] - 30.03.2013, 23:13
Re: Timer - by Omirrow - 30.03.2013, 23:34
Re: Timer - by Private200 - 31.03.2013, 00:12
Re: Timer - by Marco_Valentine - 31.03.2013, 00:18
Re: Timer - by Marco_Valentine - 31.03.2013, 00:21

Forum Jump:


Users browsing this thread: 3 Guest(s)