10.10.2011, 10:40
pawn Код:
if (strcmp(cmd,"/Lideres",true) == 0)
{
format(string, sizeof(string), "|______Lideres %s:______|", NOMEDOSERVE);
SendClientMessage(playerid,COR_VERDE,string);
for(new i = 0; i <= GetmaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][pLeader] > 0)
{
new org = GetPlayerOrg(i);
new NomeOrg[MAX_ORG_NOME];
OrgNome(org, NomeOrg, MAX_ORG_NOME);
format(string,sizeof(string),"Organizaзгo: %s[ID: %d] Lider: %s Cel: %d\n",NomeOrg,org,pNome(i),PlayerInfo[i][pPnumber]);
SendClientMessage(playerid,OrgCor(org),string);
return true;
}
}
return true;
}