13.02.2016, 16:32
Код:
CMD:ah(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) { ShowPlayerDialog(playerid, DIALOG_adminh0, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 2) { ShowPlayerDialog(playerid, DIALOG_adminh1, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 3) { ShowPlayerDialog(playerid, DIALOG_adminh2, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 4) { ShowPlayerDialog(playerid, DIALOG_adminh3, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 5) { ShowPlayerDialog(playerid, DIALOG_adminh4, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 6) { ShowPlayerDialog(playerid, DIALOG_adminh5, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } if(PlayerInfo[playerid][pAdmin] < 7) { ShowPlayerDialog(playerid, DIALOG_adminh6, DIALOG_STYLE_MSGBOX,"acmd","...","ok",""); } return 1; }