29.03.2013, 23:07
prueba asi
Deberнa funcionar bien.
pawn Код:
CMD:darlider(playerid, params[]) {
//if(Informacion[playerid][Admin] >=0 ) return SendClientMessage(playerid,-1,"No es admin nivel 4!");//el nivel admin desde que lo pueden usar
new id, facc;
if(sscanf(params, "ud", id, facc) )return SendClientMessage(playerid,-1,"Uso: /darfaccion [ID] [FACCION]");//los parametros del comando
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Jugador no conectado/ID incorrecta");
Informacion[id][Faccion] = facc;
Informacion[id][Lider] = facc;
Informacion[id][Rango] = 6;
Informacion[id][Nivel] = 3;
new IDFACCION[128], TEXTO[20];
if(facc == 1) TEXTO = "TU FACCION";
if(facc == 2) TEXTO = "TU FACCION";
if(facc == 3) TEXTO = "TU FACCION";
if(facc == 4) TEXTO = "TU FACCION";
if(facc == 5) TEXTO = "TU FACCION";
format(IDFACCION,sizeof(IDFACCION),"Administrador %s Ha Dado Faccion a:%s",NombreJ(playerid),TEXTO);
SendClientMessage(playerid, -1, IDFACCION);
return 1;
}