Dialog not showing
#9

This is my code right now, working perfectly:
PHP код:
COMMAND:acmds(playeridparams[])
{
    if(
playerData[playerid][playerLoggedIn])
    {
        if(
playerData[playerid][playerLevel] == 1)
        {
            new 
string[1400];
            
format(stringsizeof(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(playeridDIALOG_ADMIN_LEVEL1DIALOG_STYLE_MSGBOX"Admin Level 1 Commands"string"OK""");
            return 
1;
        }
        else if (
playerData[playerid][playerLevel] == 2)
        {
            new 
string[1400];
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/alog /explode /vrespawn /Duel /(un)mute\n/playerweapons /arenas /clearchat /blockask /blockreport\n\n"string);
            
ShowPlayerDialog(playeridDIALOG_ADMIN_LEVEL2DIALOG_STYLE_MSGBOX"Admin Level 2 Commands"string"OK""");
            return 
1;
        }
        else if (
playerData[playerid][playerLevel] == 3)
        {
            new 
string[1400];
            
format(stringsizeof(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(playeridDIALOG_ADMIN_LEVEL3DIALOG_STYLE_MSGBOX"Admin Level 2 Commands"string"OK""");
            return 
1;
        }
        else if (
playerData[playerid][playerLevel] == 4)
        {
            new 
string[1400];
                
format(stringsizeof(string), "%s{98B0CD}LEVEL 4 COMMANDS{51FF00}\n//unban /un)copban /gspy /resetskin <player id> /getip /countdown /respawnalluv /(un)armyban /destroyallav \n/announce /ffaevent /startffa /destroyffa/pmspy /dmevent /startdm /glassevent\n/startglass /destroyglass /falloutevent /startfallout /destroyfallout \n/cvrevent /startcvr /lmsevent /destroylms /adkill /uncuff\n\n"string);
            
ShowPlayerDialog(playeridDIALOG_ADMIN_LEVEL4DIALOG_STYLE_MSGBOX"Admin Level 4 Commands"string"OK""");
            return 
1;
        }
        else if (
playerData[playerid][playerLevel] == 5)
        {
            new 
string[1400];
                
format(stringsizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/ahealall /cwspy /createhouse /deletehouse  /giveweapon /respawnallv /resetallweapons \n/pingimmune /gotocase /startcase /houseinfo\n\n"string);
            
ShowPlayerDialog(playeridDIALOG_ADMIN_LEVEL5DIALOG_STYLE_MSGBOX"Admin Level 5 Commands"string"OK""");
            return 
1;
        }
        else if (
playerData[playerid][playerLevel] == 6)
        {
            new 
string[1400];
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/teleport /giveallweapon /doublexp /motd /motd(1-3) /ping /fine \n/playerhouses /standardvip \n/silvervip /goldvip /givetoken /givecash \n/givexp /b\n\nTo view commands in lower level admin click Next"string);
            
ShowPlayerDialog(playeridDIALOG_ADMIN_LEVEL6DIALOG_STYLE_MSGBOX"Admin Level 6 Commands"string"Okay""");
            return 
1;
        }
         else if (
playerData[playerid][playerLevel] == 7)
        {
            new 
string[1400];
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 7 COMMANDS{51FF00}\nset\nTo view commands in lower level admin click Next"string);
            
ShowPlayerDialog(playeridDIALOG_ADMIN_LEVEL7DIALOG_STYLE_MSGBOX"Admin Level 7 Commands"string"Okay""Next");
            return 
1;
        }
        return 
1;
    }
    return 
0;

Now i want to make so, that when a level 7 admin click next it takes them to Admin lvl 6,5,4,3,2,1 commands. Example: Admin level 7 player clicks next there he is by lvl 6 cmds, again he clicks next then by lvl 5 cmds etc.
Reply


Messages In This Thread
Dialog not showing - by XBoss30 - 09.12.2016, 00:07
Re: Dialog not showing - by Luis- - 09.12.2016, 00:12
Re: Dialog not showing - by XBoss30 - 09.12.2016, 00:17
Re: Dialog not showing - by Trucido - 09.12.2016, 00:48
Re: Dialog not showing - by SyS - 09.12.2016, 01:06
Re: Dialog not showing - by XBoss30 - 09.12.2016, 01:11
Re: Dialog not showing - by XBoss30 - 09.12.2016, 01:14
Re: Dialog not showing - by saffierr - 09.12.2016, 01:28
Re: Dialog not showing - by XBoss30 - 09.12.2016, 01:38
Re: Dialog not showing - by 90martins - 09.12.2016, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)