Timer between commands help + REP
#6

Код:
new robtimer[MAX_PLAYERS];
new robplay[MAX_PLAYERS];

forward RobTimers(playerid);
public RobTimers(playerid)
{
   SendClientMessage(playerid, -1, "ROBINFO: You're now can use the cmd '/robbank' again");
   robtimer[playerid] = 0;
}

CMD:robbank(playerid,params[])
{
   if(robtimer[playerid] == 1)
   return SendClientMessage(playerid, -1,"ERROR: You can use this command once every 30 minutes!");
   // bla bla bla
   robtimer[playerid] = 1;
   robplay[playerid] = SetTimerEx("RobTimers", // input for the minutes, false, "d", playerid);
   return 1;
}
I just imagine like that
Reply


Messages In This Thread
Timer between commands help + REP - by dundolina - 08.05.2015, 14:36
AW: Timer between commands help + REP - by Mencent - 08.05.2015, 14:53
Re: Timer between commands help + REP - by StR_MaRy - 08.05.2015, 15:00
Re: AW: Timer between commands help + REP - by dundolina - 09.05.2015, 14:50
AW: Timer between commands help + REP - by Mencent - 09.05.2015, 14:55
Re: Timer between commands help + REP - by justice96 - 09.05.2015, 14:58
Re: Timer between commands help + REP - by dundolina - 09.05.2015, 15:04
Re: Timer between commands help + REP - by dundolina - 09.05.2015, 15:06
Re: Timer between commands help + REP - by justice96 - 09.05.2015, 15:08
Re: Timer between commands help + REP - by dundolina - 09.05.2015, 15:43

Forum Jump:


Users browsing this thread: 2 Guest(s)