09.12.2016, 00:07 
	
	
	
		Whenever I do /acmds and I'm admin level 7, The admin level 1 dialog pops up where I want to do it, when I do /acmds only that specific Admin level dialog should show up, and this is my code:
	
	
	
	
PHP код:
COMMAND:acmds(playerid, params[])
{
    if(playerData[playerid][playerLoggedIn])
    {
        if(playerData[playerid][playerLevel] >= 1)
        {
            new string[1400];
            format(string, sizeof(string), "%s{98B0CD}LEVEL 1 COMMANDS{51FF00}\n/goto /aod /kick /jail /asay /spawn /slap /warn\n/(un)freeze /playerstats /spec /specoff /rarb\n\n", string);
            ShowPlayerDialog(playerid, DIALOG_ADMIN_LEVEL1, DIALOG_STYLE_MSGBOX, "Admin Level 1 Commands", string, "OK", "");
            return 1;
        }
        else if (playerData[playerid][playerLevel] >= 2)
        {
              new string[1400];
            format(string, sizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/alog /explode /vrespawn /Duel /(un)mute\n/playerweapons /arenas /clearchat /blockask /blockreport\n\n", string);
            ShowPlayerDialog(playerid, DIALOG_ADMIN_LEVEL2, DIALOG_STYLE_MSGBOX, "Admin Level 2 Commands", string, "OK", "");
            return 1;
        }
        else if (playerData[playerid][playerLevel] >= 3)
        {
            new string[1400];
            format(string, sizeof(string), "%s{98B0CD}LEVEL 3 COMMANDS{51FF00}\n/ban /vc(create) /getpforevent /unfreezeall /setskin /vdestroy /get /vgoto /vbring /resetweapons\n/forcerules /forcecoptutorial \n/aheal /playertokens /playervehicles /playertokens \n/playerjailtime /playerjob\n\n", string);
            ShowPlayerDialog(playerid, DIALOG_ADMIN_LEVEL3, DIALOG_STYLE_MSGBOX, "Admin Level 2 Commands", string, "OK", "");
            return 1;
        }
        else if (playerData[playerid][playerLevel] >= 7)
        {
            new string[1400];
            format(string, sizeof(string), "%s{98B0CD}LEVEL 443 COMMANDS{51FF00}\n/ban /vc(create) /getpforevent /unfreezeall /setskin /vdestroy /get /vgoto /vbring /resetweapons\n/forcerules /forcecoptutorial \n/aheal /playertokens /playervehicles /playertokens \n/playerjailtime /playerjob\n\n", string);
            ShowPlayerDialog(playerid, DIALOG_ADMIN_LEVEL7, DIALOG_STYLE_MSGBOX, "Admin Level 7 Commands", string, "OK", "");
            return 1;
        }
        return 1;
    }
    return 0;
} 






