08.02.2015, 11:24
PHP код:
CMD:admins(playerid, params[])
{
new MyStr[100], str[150], bool: ademir = false, PlayerNami[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][Admin] != 0)
{
GetPlayerName(i,PlayerNami,MAX_PLAYER_NAME);
format(str, sizeof(str),"{80FF00}%s [ID:{FFFF00}%d{80FF00}] Level:{FFFF00}%d\n",PlayerNami, i, PlayerInfo[i][Admin]);
strcat(MyStr, str, sizeof(MyStr));
ademir = true;
}
}
if(ademir == false)
return ShowPlayerDialog(playerid,12,DIALOG_STYLE_MSGBOX,"Admins","{FF0000}Temos Nenhum Administrador Online!\nCaso Ver Algum Cheaters Denuncie\nEm Nossa Comunidade\nEquipe-cbd.blogspot.com.br","Ok","");
else ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Admins", MyStr, "OK", "");
return 1;
}