Baltasar
Новичок
HTML:
YCMD:leaders(playerid, params[], help)
{
strings[0] = 0;
if(gPlayerLogged[playerid] == 0) return true;
if(!IsPlayerConnected(playerid)) return true;
new ttext[300];
foreach(Player, i) // Сканируем Всех...
{
switch(PlayerInfo[i][pLeader])
{
case 0: continue;
case 1: { ttext = "LSPD"; }
case 2: { ttext = "ФБР"; }
case 3: { ttext = "Армия: Авианосец"; }
case 4: { ttext = "МЧС Сан Фиерро"; }
case 5: { ttext = "LCN"; }
case 6: { ttext = "Yakuza"; }
case 7: { ttext = "Мэрия"; }
case 8: { ttext = "Casino Rich"; }
case 9: { ttext = "SF News"; }
case 10: { ttext = "SFPD"; }
case 11: { ttext = "Инструкторы"; }
case 12: { ttext = "The Ballas "; }
case 13: { ttext = "The Vagos"; }
case 14: { ttext = "Русская мафия"; }
case 15: { ttext = "The Grove"; }
case 16: { ttext = "LS News"; }
case 17: { ttext = "The Aztecas"; }
case 18: { ttext = "The Rifa"; }
case 19: { ttext = "Армия: Зона 51"; }
case 20: { ttext = "LV News"; }
case 21: { ttext = "LVPD"; }
case 22: { ttext = "МЧС Лос Сантос"; }
case 23: { ttext = "Хитман"; }
case 24: { ttext = "Street Rasers"; }
case 25: { ttext = "Special Weapons Assault Team"; }
}
format(strings,512,"%s%s: %s [%d]\n",strings,ttext,PlayerInfo[i][pName],i);
}
ShowPlayerDialog(playerid,139, DIALOG_STYLE_MSGBOX, "Лидеры Онлайн:", strings, "OK", "Отмена");
return true;
}
