21.04.2015, 22:55
Ayuda! Me aparece que no soy Policia pero la variable la tengo en 1 Es un error del COMANDO?
Код:
CMD:esposar(playerid,params[])
{
new id;
new string[256];
new string2[256];
if(DatosPJ[playerid][pFaccion] == 1) return SendClientMessage(playerid,-1,"No eres Policia");
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Uso correcto: /esposar [id]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Ese jugador no estб conectado!");
format(string, sizeof(string), "Has Esposado a %s ",NombreJugador(id));
SendClientMessage(playerid, COLOR_GREEN, string);
format(string2, sizeof(string2), "El Policia %s te espososo",NombreJugador(playerid));
SendClientMessage(id,-1,string2);
ApplyAnimation(id,"SWORD","sword_block",50.0,0, 1,1,1,1);
return 1;
}


