my /admin help cmd doesnt work
#1

ok i have this
pawn Код:
CMD:ah(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
        SendClientMessageEx(playerid, COLOR_DBLUE,"_______________________________________");
        SendClientMessageEx(playerid, COLOR_YELLOW, "*** {C85A17}Senior Moderator{FFFFFF} *** /mjail /kick /c /togadvisor");
    }
    if (PlayerInfo[playerid][pAdmin] >= 2)
    {
        SendClientMessageEx(playerid, COLOR_GREEN,"*** {FFFF00}Junior Admin{FFFFFF} *** /kick /ban /jail /bigears /freeze /unfreeze /slap /warn /cnn /gethere /gotoid /hospital /goto /requestevent /god");
        SendClientMessageEx(playerid, COLOR_GREEN,"*** {FFFF00}Junior Admin{FFFFFF} *** /gotoplayerscar /jetpack /god /check /ipcheck /ip /hlmute /nrn /listguns /setvw /setint /vehname /watch /aguns");
    }
    if (PlayerInfo[playerid][pAdmin] >= 3)
    {
        SendClientMessageEx(playerid, COLOR_GREEN,"*** {99FF33}General Admin{FFFFFF} *** /noooc /nonewbie /prison /fine /pfine /takeadminweapons /sendtols /prisonaccount /gotocar /entercar /getcar");
        SendClientMessageEx(playerid, COLOR_GREEN,"*** {99FF33}General Admin{FFFFFF} *** /mole /setskin /countdown /release /force(death/hospital) /rto(reset) /jailaccount /(o)clearflag /mark /reloadpvehicles");
        SendClientMessageEx(playerid, COLOR_GREEN,"*** {99FF33}General Admin{FFFFFF} *** /gotoco /n(un)mute /ad(un)mute /leaders /dm /wepreset /ocheck /owarn /ofine /okills /respawncar(s) /revive /sendtospawn");
    }
    if (PlayerInfo[playerid][pAdmin] >= 4)
    {
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /edit /asellhouse /asellbiz /setchamp /setarmorall /fixvehall /givenos /blowup /setname /startlotto /savechars");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /veh /fixveh /sethp /setarmor /givegun /givemoney /setmoney /setstat /setfightstyle /switchfac /switchfam /facpay");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /fcreate /fdelete /adivorce /destroycar /destroycars /eventhelp /contracts /sprison /sjail /listfacpay");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /facban /faccsfban /unban /unbanip /deletehit /clearall /setinsurance /cmotd /givelicense /adestroyplant");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /createpvehicle /destroypvehicle /creategvehicle /vipparty /vto /vtoreset /forceskin /admingatepw /gotogate");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /hnext /dmpnext /g(status/near/next/edit) /(goto/goin)door /(goto/goin)house /(create/delete/goto)point");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /hedit /dd(edit/next/name/pass) /dmpedit /dmpnear /gotomapicon /gangwarn /gangunban /setcapping /banaccount");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /cr /gr /cage");
        SendClientMessageEx(playerid, COLOR_ORANGE,"*** {FF6633}Senior Admin{FFFFFF} *** /cpv (Shortcut of /createpvehicle) /cgv(Shortcut of /creategvehicle)");
    }
    if (PlayerInfo[playerid][pAdmin] >= 1337)
    {
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {3366FF}Head Admin{FFFFFF} *** /weather /weatherall /makeleader /tod /dedit /pedit /facunban /faccsfunban /giftall");
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {3366FF}Head Admin{FFFFFF} *** /permaban /setcolor /payday /clearallreports /eventreset /amotd /vipmotd /givetoken /saveserver");
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {3366FF}Head Admin{FFFFFF} *** /createdealership /destroydealership /createcdveh /destroycdveh /fedit /vmute /vsuspend /gifts");
    }
    if (PlayerInfo[playerid][pAdmin] >= 1338)
    {
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {FFFF00}Staff Manager{FFFFFF} *** /suspend /osuspend /rmute /specreset /pausespec /random /vrandom /giftreset /vipgifts /buddyinvite");
    }
    if (PlayerInfo[playerid][pAdmin] >= 99998)
    {
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {00FF00}Co Community Owner{FFFFFF} *** /motd /amotd /vipmotd /makeshoptech /makefacmod /makegangmod /makeundercover /makebanappealer");
    }
    if (PlayerInfo[playerid][pAdmin] >= 99999)
    {
        SendClientMessageEx(playerid, COLOR_REALRED,"*** {F50A16}Community Owner{FFFFFF} *** /announcem /makeadmin /crash /crashnear /setstreamer");
    }
    if (PlayerInfo[playerid][pBanAppealer] == 1 || PlayerInfo[playerid][pShopTech] == 1 || PlayerInfo[playerid][pUndercover] == 1 || PlayerInfo[playerid][pFactionModerator] == 1 || PlayerInfo[playerid][pBanAppealer] == 1 || PlayerInfo[playerid][pShopTech] == 1 || PlayerInfo[playerid][pUndercover] == 1 || PlayerInfo[playerid][pGangModerator] == 1)
    {
        new string2[256];
        format(string2, sizeof(string2), "*** SPECIAL ***");
        if (PlayerInfo[playerid][pBanAppealer] == 1) format(string2, sizeof(string2), "%s /unbanip /unban", string2);
        if (PlayerInfo[playerid][pShopTech] == 1) format(string2, sizeof(string2), "%s /orders /shopblock /setvip /shopcar /shopcardel /shophouse /shoptokens /shoplaser /shopvest /gedit /gnear /gstatus /gnext /hnext /gotogate", string2);
        if (PlayerInfo[playerid][pUndercover] == 1) format(string2, sizeof(string2), "%s /setmystat /setmyname /setmyhp /setmyarmour /sprison /sjail /sdm /swarn /sban", string2);
        if (PlayerInfo[playerid][pFactionModerator] == 1) format(string2, sizeof(string2), "%s /listfacpay /facpay /switchfac /faccsfban /facban /fackick /leaders", string2);
        if (PlayerInfo[playerid][pGangModerator] == 1) format(string2, sizeof(string2), "%s /switchfam /fedit /creategvehicle /destroygvehicle /gangwarn /gangunban /fcreate /fdelete /twmenu", string2);

        if(strlen(string2) >= 128)
        {
            new firstline[128], secondline[128];
            strmid(firstline, string2, 0, 128);
            strmid(secondline, string2, 128, 256);
            SendClientMessageEx(playerid, COLOR_GRAD5, firstline);
            SendClientMessageEx(playerid, COLOR_GRAD5, secondline);
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_GRAD5,string2);
        }
    }
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
        SendClientMessageEx(playerid, COLOR_DBLUE,"_______________________________________");
    }
    return 1;
}
and when im a level 99999 i type /ah and it only shows up CO commands down to Senior commands it leaves out general admin and junior admin and displayers server mod again please help
Reply
#2

put else if in the line pAdmin 2, 3, 4, 1337, 1338, 99998, 99999
Reply
#3

It's seems work, you have scroll the page up?
Reply
#4

ye i have nothing there aye
Reply
#5

its really weird any ideas?
Reply
#6

It looks like it should be in working condition, try compiling it and then post the error if it occurs.
Reply
#7

Okay ... try /ah if it doesn't work try /acommands if that doesn't work i cant help you man.
Reply
#8

Why SendClientMessageEx, why not normal one since you're not using any params at the end?
Reply
#9

Are you sure you're a 99999 administrator? It seems in a working condition.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)