[HELP] block sending money for 1 minute
#1

how to block the sending of money for 1 minute? When he sent it has to wait 1 minute to send again!

Код:
 if(strcmp(cmd, "/money", true) == 0) {
    new Float:health;
    GetPlayerHealth(playerid, health);
    if(health < 30) return SendClientMessage(playerid, Vermelho, "His life is low and can not send money");
    if(GetPlayerMoney(playerid) > 20000) return SendClientMessage(playerid, RED, "Maximum allowable amount for sending money is $ 20,000!");
	  new tmp[256];
		tmp = strtok(cmdtext, idx);

		if(!strlen(tmp)) {
			SendClientMessage(playerid, COLOR_WHITE, "Use: /money [id] [AMOUNT]");
			return 1;
		}
		giveplayerid = strval(tmp);
        if(gArena[giveplayerid] == true){
           SendClientMessage(playerid, COLOR_WHITE, "Can not send money who's arena dm!");
		   return 1;
         }
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp)) {
			SendClientMessage(playerid, COLOR_WHITE, "Use: /money [id] [AMOUNT]");
			return 1;
		}
 		moneys = strval(tmp);
Reply


Forum Jump:


Users browsing this thread: