Quote:
Originally Posted by Los
pawn Код:
new Explodiu[MAX_PLAYERS]; forward Desisplodir(playerid);
if(strcmp("/homembomba", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][pMember] != 22 || PlayerInfo[playerid][pMember] != 22) return SendClientMessage(playerid, -1, "Vocк nгo й da AlQaeda!"); if(Explodiu[playerid] == 1) return SendClientMessage(playerid, -1, "Aguarde 5 minutos para explodir novamente!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); CreateExplosion(X, Y, Z, 9, 15.0); new string[100]; format(string, sizeof(string), "%s Realizou um homem-bomba.", NomeEx(playerid)); SendClientMessageToAll(-1, string); Explodiu[playerid] = 1; SetTimerEx("Desisplodir", 60000*5, false, "i", playerid); return 1; }
public Desisplodir(playerid) { Explodiu[playerid] = 0; SendClientMessage(playerid, -1, "Agora vocк jб pode explodir novamente!"); return 1; }
|
no SetTimerEx("Desisplodir", 60000*5, false, "i", playerid); nгo seria "d" ao invйs de "i" nгo?