Editing the dialog box
#2

You can use an if-else-statement. Considering that a /help command handles no variables and thus doesn't need any formatting:
PHP код:
if(AdminLevel[playerid] > 0) {
    
// Replace 'AdminLevel[playerid]' with w/e the variable name is that you store the admin level in.
    // Admin level > 0, player is an admin.
    
ShowPlayerDialog(playeridDIALOG_IDDIALOG_STYLE_LIST"HELP""Player commands\nAdmin Commands""Choose""Close");
}
else {
    
// Admin level == 0 or < 0, player is not an admin.
    
ShowPlayerDialog(playeridOTHER_DIALOG_IDDIALOG_STYLE_LIST"HELP""Player commands""Continue""Close");

So basically you've got two completely different dialogs with each a different ID.
Reply


Messages In This Thread
Editing the dialog box - by fuckingcruse - 08.04.2016, 16:08
Re: Editing the dialog box - by AndySedeyn - 08.04.2016, 16:13
Re: Editing the dialog box - by fuckingcruse - 08.04.2016, 16:18
Re: Editing the dialog box - by Akbaig - 08.04.2016, 16:45
Re: Editing the dialog box - by AndySedeyn - 08.04.2016, 16:52
Re: Editing the dialog box - by Akbaig - 08.04.2016, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)