Команда /leaders вида: Фракция-Ник-Номер

В начало мода
Quote
#define Color_Yellow5 0xF6BA00AA
#define Color_Yellow234 0xE2E74EAA

Или просто в коде измените цвет на свой

Пихаем в public OnPlayerCommandText(playerid, cmdtext[])

Quote
if (strcmp(cmd, "/leaders", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, Color_Yellow5, "| Лидеры онлайн |");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLeader] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
if(PlayerInfo[i][pLeader] == 1)
{
format(string, 256, " Полиция: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 2)
{
format(string, 256, " ФБР: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 3)
{
format(string, 256, " Армия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 4)
{
format(string, 256, " МЧС: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 5)
{
format(string, 256, " Surenos Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 6)
{
format(string, 256, " Signatra Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 7)
{
format(string, 256, " Мэрия: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 8)
{
format(string, 256, " Агенство: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 9)
{
format(string, 256, " Репортеры: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 10)
{
format(string, 256, " Такси: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 11)
{
format(string, 256, " Служба Лицензирования: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 13)
{
format(string, 256, " Sons of Anarchy Gang: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 14)
{
format(string, 256, " Yamaguchi Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 15)
{
format(string, 256, " LCN: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 16)
{
format(string, 256, " Russian Mafia: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 17)
{
format(string, 256, " The Ballas: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
else if(PlayerInfo[i][pLeader] == 18)
{
format(string, 256, " The Grove Street: %s Телефон: %d", giveplayer, PlayerInfo[i][pPnumber]);
SendClientMessage(playerid, Color_Yellow234, string);
}
}
}
}
}
return 1;
}