03.03.2017, 20:03
Код:
CMD:admins(playerid, params[]) { if(AccountInfo[playerid][pAdmin] > 0) { new adminstring[128]; if(IsPlayerConnected(playerid)) { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(AccountInfo[playerid][pAdmin] > 0) { format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i)); } } } ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close",""); } else return SendClientMessage(playerid,-1,"*"COL_LGREEN" No admins online");