- Регистрация
- 23 Дек 2013
- Сообщения
- 52
- Лучшие ответы
- 0
- Репутация
- 0
Приветствую друзья.
Подскажите пожалуйста, как сделать команду /leaders в диалоговом окне?
Сам пробовал - особо не получалось.
Если кто может - подскажите пожалуйста
Подскажите пожалуйста, как сделать команду /leaders в диалоговом окне?
PHP:
CMD:leaders(playerid, params[])
{
SendClientMessage(playerid,COLOR_WHITE,".:: "NAME_SERVER" Leaders Online ::.");
new b=0,ttext[32];
foreach(Player,i)
{
if(PlayerInfo[i][pAlcoInvenxua] > 0 || PlayerInfo[i][pLeader] <= 0) continue;
switch(PlayerInfo[i][pLeader])
{
case 1: ttext = "{2641FE}LSPD";
case 2: ttext = "{313131}ФБР";
case 3: ttext = "{33AA33}Армия: Авианосец";
case 4: ttext = "{A52A2A}МЧС";
case 5: ttext = "{DDA701}LCN";
case 6: ttext = "{FF0000}Yakuza";
case 7: ttext = "{FFFF00}Мэр Города";
case 8: ttext = "{B313E7}Casino Rich";
case 10: ttext = "{2641FE}SFPD";
case 11: ttext = "{139BEC}Инструкторы";
case 12: ttext = "{8813E7}The Ballas";
case 13: ttext = "{DBD604}The Vagos";
case 14: ttext = "{B4B5B7}Русская мафия";
case 15: ttext = "{009F00}The Grove";
case 16: ttext = "{40848B}San News";
case 17: ttext = "{01FCFF}The Aztecas";
case 18: ttext = "{83BFBF}The Rifa";
case 19: ttext = "{33AA33}Армия: Зона 51";
case 21: ttext = "{2641FE}LVPD";
case 23: ttext = "{708090}Хитман";
case 24: ttext = "{F45000}Street Rasers";
case 25: ttext = "{2E8B57}SWAT";
case 26: ttext = "{FFFF00}Адм.Президента";
case 27: ttext = "{B313E7}Casino Four Dragons";
case 28: ttext = "{B313E7}Casino Caligulas";
default: ttext = "{FF0000}Неизвестно";
}
b++;
if(GetPVarInt(i, "AFK_Time") > 2) SendMes(playerid,COLOR_GREY, "%s - %s[%d] [%d/3] {FF0000}(AFK: %s)", ttext, PlayerInfo[i][pNames], i,PlayerInfo[i][pVigs], Convert(GetPVarInt(i,"AFK_Time")-2));
else SendMes(playerid,COLOR_GREY, "%s - %s[%d] [%d/3]",ttext,PlayerInfo[i][pNames],i,PlayerInfo[i][pVigs]);
}
if(b > 0) SendMes(playerid,COLOR_GREY,"В сети всего %d лидеров.",b);
else return SendClientMessage(playerid,COLOR_GREY,"Нет никого из лидеров в сети.");
return true;
}
Если кто может - подскажите пожалуйста