Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Unknown cmd

$
0
0
This shows me unknown cmd idk why
Code:

CMD:ah(playerid, params[])
{
        new alevel = PlayerInfo[playerid][pAdmin];
        new string[16000];
        if(alevel > 0)
        {
        if(alevel >= 1)
        {
            strcat(string,  "LEVEL 1:{DDDDDD} /a, /skick, /sban, /sjail, /pinfo, /spec, /reports, /admins, /flag, /removeflag, /listflags, /check, /dm.\n");
            strcat(string,  "LEVEL 1:{DDDDDD} /ocheck, /oflag, /listflagged.\n"); //antiplanebomb
        }
        if(alevel >= 2)
        {
            strcat(string, "LEVEL 2:{DDDDDD} /aduty, /adminname, /kick, /ban, /warn, /slap, /ar, /tr, /rr, /cr, /getip, /iplookup, /ogetip, /setint, /setvw.\n");
            strcat(string, "LEVEL 2:{DDDDDD} /setskin, /revive, /heject, /goto, /gethere, /gotocar, /getcar, /gotocoords, /gotoint, /listen, /jetpack, /sendto.\n");
            strcat(string, "LEVEL 2:{DDDDDD} /freeze, /unfreeze, /rwarn, /runmute, /nmute, /admute, /hmute, /gmute, /skiptut, /listguns, /disarm.\n");
            strcat(string, "LEVEL 2:{DDDDDD} /jail, /listjailed, /lastactive, /checkinv, /afklist, /acceptname, /denyname, /namechanges, /nrn.\n");
            strcat(string, "LEVEL 2:{DDDDDD} /prisoninfo, /relog, /rtnc, /sth, /nro, /nao, /nor, /post, /contracts, /denyhit, /undercover.\n");
        }
        if(alevel >= 3)
        {
            strcat(string, "LEVEL 3:{DDDDDD} /prison, /sprison, /oprison, /release, /fine, /pfine, /ofine, /sethp, /setarmor, /mark, /gotomark.\n");
            strcat(string, "LEVEL 3:{DDDDDD} /veh, /destroyveh, /respawncars, /broadcast, /fixveh, /clearchat, /healrange, /shots, /damages.\n");
            strcat(string, "LEVEL 3:{DDDDDD} /resetadtimer, /baninfo, /banhistory, /kills, /togooc, /tognewbie, /togglobal, /listpvehs, /despawnpveh.\n");
            strcat(string, "LEVEL 3:{DDDDDD} /aclearwanted, /removedm, /savevehicle, /editvehicle, /removevehicle, /refillcars, /refilldrug, /duel.\n");
            strcat(string, "LEVEL 3:{DDDDDD} /startchat, /invitechat, /kickchat, /endchat.\n");
        }
        if(alevel >= 4)
        {
            strcat(string, "LEVEL 4:{DDDDDD} /givegun, /setname, /permaban, /oban, /unban, /unbanip, /banip, /lockaccount, /unlockaccount.\n");
            strcat(string, "LEVEL 4:{DDDDDD} /explode, /event, /gplay, /gplayurl, /gstop, /sethpall, /setarmorall, /setweather, /settime, /addtoevent.\n");
        }
        if(alevel >= 5)
        {
            strcat(string, "LEVEL 5:{DDDDDD} /setstat, /givemoney, /givemoneyall, /givecookie, /givecookieall, /setvip, /forcepayday.\n");
            strcat(string, "LEVEL 5:{DDDDDD} /removevip, /rangeban, /deleteaccount, /doublexp, /previewint, /nearest, /dynamichelp.\n");
            strcat(string, "LEVEL 5:{DDDDDD} /saveaccounts, /adestroyboombox, /resetbanktimer, /resetrobbery, /givepayday, /givepveh, /givedoublexp.\n");
        }
        if(alevel >= 6)
        {
            strcat(string, "LEVEL 6:{DDDDDD} /makeadmin, /makehelper, /omakeadmin, /omakehelper, /setmotd, /setstaff, /forceaduty.\n");
            strcat(string, "LEVEL 6:{DDDDDD} /olisthelpers, /olistadmins, /gmx, /sellinactive, /changelist, /fixplayerid, /anticheat.\n");
                }
        if(alevel >= 7)
        {
            strcat(string, "LEVEL 7:{DDDDDD} RCON ACCESS\n");
        }
        ShowPlayerDialog(playerid, DIALOG_ADMINHELPS, DIALOG_STYLE_MSGBOX, "Administrator's Commands", string, "Ok", "");
        }
            else return SendClientMessage(playerid, COLOR_RED, "You're not an administrator");
            return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>