21.01.2015, 02:34
Quote:
if(IsPlayerNPC(i)) return 1;
pon eso en ves de if(IsPlayerNPC(playerid) && playerid) return 1; |
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)) return 1;
if (PlayerInfo[playerid][pAdmin] >= 2){
SendClientMessage(playerid, color1 " ");
}
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;
}