Wait 2 mins before doing this again
#7

Act something like this:
pawn Код:
new lastRobbed[MAX_PLAYERS];

// in the command
if(GetTickCount() - lastRobbed[playerid] < 120 * 1000)
    return SendClientMessage(playerid, COLOR, "You must wait 2 minutes before robbing again!");
lastRobbed[playerid] = GetTickCount();
You could also make it using PVars since this data isn't often accessed.
Reply


Messages In This Thread
Wait 2 mins before doing this again - by phil_lendon - 27.07.2011, 21:36
Re: Wait 2 mins before doing this again - by Vince - 27.07.2011, 21:37
Re: Wait 2 mins before doing this again - by phil_lendon - 27.07.2011, 21:39
Re: Wait 2 mins before doing this again - by iPLEOMAX - 27.07.2011, 21:41
Re: Wait 2 mins before doing this again - by phil_lendon - 27.07.2011, 21:48
Re: Wait 2 mins before doing this again - by iPLEOMAX - 27.07.2011, 21:56
Re: Wait 2 mins before doing this again - by AndreT - 27.07.2011, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)