Всем привет. Переведите плиз из диалога в текст.
это /admins
Код
C:admins;
return ShowPlayerAdmin(playerid);
Код
stock ShowPlayerAdmin(playerid)
{
new str[256],sctring[1024];
foreach(new i : Player)
{
if(PlayerInfo[i][bAdmin] > 0)
{
new adminrang[50];
switch(PlayerInfo[i][bAdmin])
{
case 1: adminrang = "{F6FF00}(Практикант){FFFFFF}";
case 2: adminrang = "{F6FF00}(Ст.Практикант){FFFFFF}";
case 3: adminrang = "{33CCFF}(Мл.Модератор){FFFFFF}";
case 4: adminrang = "{33CCFF}(Модератор){FFFFFF}";
case 5: adminrang = "{33CCFF}(Ст.Модератор){FFFFFF}";
case 6: adminrang = "{33CCFF}(Гл.Модератор){FFFFFF}";
case 7: adminrang = "{00E910}(Мл.Администратор){FFFFFF}";
case 8: adminrang = "{00E910}(Администратор){FFFFFF}";
case 9: adminrang = "{00E910}(Ст.Администратор){FFFFFF}";
case 10: adminrang = "{00E910}(Гл.Администратор){FFFFFF}";
case 11: adminrang = "{EAC700}(Спец.Администратор){FFFFFF}";
case 12: adminrang = "{FF0000}(Основатель){FFFFFF}";
}
format(str,sizeof(str),"* %s %s[%d] [{32CD32}lvl:%d{FFFFFF}]\n",adminrang, PlayerInfo[i][pNames],i,PlayerInfo[i][bAdmin]);
strcat(sctring,str);
}
}
return ShowPlayerDialog(playerid, 2963, DIALOG_STYLE_MSGBOX,"{FFFFFF}"DSN" | ADMINS ONLINE", sctring, "CLOSE", "");
}
это /helpers
Код
C:helpers;
{
new string[1260];
new b=0,ttext[32];
foreach(new i : Player)
{
if(PlayerInfo[i][pHelper] > 0)
{
switch(PlayerInfo[i][pHelper])
{
case 1: ttext = "{FFD700}(Àãåíò Ïîääåðæêè)";
case 2: ttext = "{FFD700}(Ïðàêòèêàíò)";
case 3: ttext = "{FFD700}(Ñò.Ïðàêòèêàíò)";
case 4: ttext = "{FFD700}(Ìëàäøèé.Õýëïåð)";
case 5: ttext = "{FFD700}(Õýëïåð)";
case 6: ttext = "{FFD700}(Ñòàðøèé.Õýëïåð)";
case 7: ttext = "{FF5000}(Çàì.Ãë.Õåëïåðà)";
case 8: ttext = "{FF0000}(Ãëàâíûé õåëïåð)";
default: ttext = "{FFD700}(Àãåíò Ïîääåðæêè)";
}
b++;
format(string,sizeof(string),"%s %s %s[%d]\n",string,ttext,PlayerInfo[i][pNames],i);
ShowPlayerDialog(playerid, 1983, DIALOG_STYLE_MSGBOX, "{00C0FF}»{FFFFFF} Хелперы Online {00C0FF}«{FFFFFF}", string, "Îê", "Îòìåíà");
}
}
return true;
}