18.09.2011, 13:39
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;
}