31.03.2013, 18:04
pawn Код:
ShowPlayerDialogEx(playerid, dialogid, dialogtype, caption[], body[], body_placeholder[], button1[], button2[])
{
if(!strlen(body))
{
return ShowPlayerDialog(playerid, dialogid, dialogtype, caption, body_placeholder, button1, button2);
}
return ShowPlayerDialog(playerid, dialogid, dialogtype, caption, body, button1, button2);
}
pawn Код:
new dialogBody[1024];
for(new playerIndex; playerIndex < MAX_PLAYERS; playerIndex++)
{
if(IsPlayerAdmin(playerIndex))
{
format(dialogBody, sizeof(dialogBody), "%sID %d is an RCON admin\n", dialogBody, playerIndex);
}
}
ShowPlayerDialogEx(playerid, DIALOG_RCONADMINS, DIALOG_STYLE_LIST, "RCON Administrators", dialogBody, "There are no RCON administrators online.", "Close", "");