help ?
#2

Don't really know how efficient this is but ought to work (not tested):

Код:
new StopKwak[MAX_PLAYERS]; //at the top of your script
forward AllowKwak(playerid);
Код:
OnPlayerText(playerid, text[])
{
     if(!strcmp(text, "kwakbox",false, 7))
     {
         if(StopKwak[playerid] == 0)
         {
               StopKwak[playerid] = 1;
               SetTimerEx("AllowKwak", 300000, false, "i", playerid);
         }
         else
         {
               SendClientMessage(playerid, 0xFF0000, "Please wait 5 minutes before saying kwakbox again!");
               return 0;
         }
      }
      return 1;
}
Код:
public AllowKwak(playerid) //anywhere in your script
{
     StopKwak[playerid] = 0;
}
Reply


Messages In This Thread
help ? - by radi - 07.06.2009, 11:12
Re: help ? - by lol2112 - 07.06.2009, 11:23
Re: help ? - by radi - 07.06.2009, 11:34
Re: help ? - by [CK]Steel - 07.06.2009, 11:50
Re: help ? - by lol2112 - 07.06.2009, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)