Quote:
Originally Posted by gaara13
pawn Код:
if (strcmp("/quemartodos", cmd, true, 10) == 0) { if (PlayerInfo[playerid][pAdmin] >= 2) { GetPlayerName(playerid,NAME,MAX_PLAYER_NAME); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && (i != playerid)) { if(IsPlayerNPC(i) && playerid) return 1; GetPlayerPos(i, A, B,C ); CreateExplosion(A, B , C + 3, 1, 10); format(string,sizeof string,"el admin %s se puso loco y quemo a todos matenlo al hijo de puta",NAME); SendClientMessageToAll(0xFF0000FF, string);
} } } return 1; }
listo ahora quedo asi pero no me deja usar el comando creo que es por el return me bloquea el comando
pawn Код:
if(IsPlayerNPC(playerid) && playerid) return 1;
|
if(IsPlayerNPC(i)) return 1;
pon eso en ves de if(IsPlayerNPC(playerid) && playerid) return 1;