http://vangog.bks-tv.ru/i/0/e/50361e1aee2e0.png
Старое заменяем на:
Code
else if(strcmp(cmd,"/members",true)==0)
{
new teamnumber;
if (PlayerInfo[playerid][pLeader] != 0) teamnumber = PlayerInfo[playerid][pLeader];
else if (PlayerInfo[playerid][pMember] != 0) teamnumber = PlayerInfo[playerid][pMember];
else return SendClientMessage(playerid, COLOR_GRAD1, "Вы ни где не состоите!");
SendClientMessage(playerid, 0x059BD3AA, "Члены организации Онлайн:");
for(new i=0;i<MaxPlayers;i++)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "");
if (PlayerInfo[i][pLeader] == teamnumber) format(string, sizeof(string), "[%d] %s ранг: Лидер",i,sendername);
else if (PlayerInfo[i][pMember] == teamnumber) format(string, sizeof(string), "[%d] %s ранг: %d",i,sendername, PlayerInfo[i][pRank]);
if (strlen(string) > 1) SendClientMessage(playerid, 0x059BD3AA, string);
}
return true;
}
Автор:NuBass