#6

Quote:
Originally Posted by Fluid016
Посмотреть сообщение
if(IsPlayerNPC(i)) return 1;

pon eso en ves de if(IsPlayerNPC(playerid) && playerid) return 1;
pasa lo mismo me bloquea el comando gracias amigo ya lo soluciones a si mira

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;
}
igual me sirviу sus explicaciones para mejorar mis cуdigos muchas gracias
Reply


Messages In This Thread
Duda - by gaara13 - 21.01.2015, 01:26
Respuesta: Duda - by jotajeda - 21.01.2015, 01:40
Respuesta: Duda - by Fluid016 - 21.01.2015, 01:44
Respuesta: Duda - by gaara13 - 21.01.2015, 02:19
Respuesta: Duda - by Fluid016 - 21.01.2015, 02:22
Respuesta: Duda - by gaara13 - 21.01.2015, 02:34
Respuesta: Duda - by OTACON - 21.01.2015, 03:58
Respuesta: Duda - by gaara13 - 21.01.2015, 21:55
Respuesta: Duda - by Zume - 22.01.2015, 00:19
Respuesta: Duda - by jotajeda - 22.01.2015, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)