vendredi 20 février 2015

Como saber Clan [Ayuda]

Hola amigos del samp como puedo saber cual es mi clan con un comando..



por ejemplo:



Con el comando /miclan

Y me salga un mensaje: Tu clan es %s



O en caso contrario si no tiene clan:



Me salga: Ninguno



mi funcion que tengo:




Code:



format(file, sizeof(file), GANG_FILE, i);

if(dini_Exists(file) && dini_Int(file,"GANG_MEMBERS") <= 1)

{

dini_Remove(file);

format(string, sizeof(string), "ID: %d, Miembros: %d, Nombre: %s", i, GangInfo[i][GANG_MEMBERS], GangInfo[i][GANG_NAME]);

SendClientMessage(playerid, COLOR_ROJO, string);

format(string, sizeof(string), "El Clan %s Esta Vacio!", GangInfo[i][GANG_NAME]);

SendClientMessageToAll(COLOR_ROJO, string);

for(new p; p < MAX_PLAYERS; p++)

{

if(PlayerGang[p] == i && IsPlayerConnected(p))

{

dUserSetINT(PlayerName2(playerid)).("clan",0);

PlayerGang[p] = 0;







Aucun commentaire:

Enregistrer un commentaire