Quote:
Originally Posted by Nake01
Ver se й mais ou menos isto:
pawn Code:
if(!strcmp(cmdtext, "/clanson", true)) { SendClientMessage(playerid, 0x00FF00FF, "#### CLANS ONLINE ####"); new count=0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][Ballas] >= 1 || PlayerInfo[i][Aztecas] >= 1 || PlayerInfo[i][Grove] >= 1 || PlayerInfo[i][Vagos] >= 1) { new cargo[20]; if(PlayerInfo[i][Ballas] >= 1) cargo = "Ballas"; if(PlayerInfo[i][Aztecas] >= 1) cargo = "Aztecas"; if(PlayerInfo[i][Grove] >= 3) cargo = "Grove"; if(PlayerInfo[i][Vagos] >= 4) cargo = "Vagos"; new str[100]; format(str, sizeof(str), "{FF0000}%s {C0C0C0}- %d",cargo, count); SendClientMessage(playerid, 0xC0C0C0FF, str); count++; } } } if(count == 0) { SendClientMessage(playerid, 0xFF0000FF, "Nenhum Membro de Clan Online."); } return 1; }
|
Quase isto, so que eu quero que ele ja endentifica pelo o [] , sem terde colocar os clгns no gm...