SA-MP Forums Archive
Help with this command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with this command (/showthread.php?tid=640021)



Help with this command - BadJih - 27.08.2017

hello, i need to make this command appear dialog message box , please anyone help me...


Код:
CMD:ahelp(playerid, params[])
{
	new alevel = PlayerInfo[playerid][pAdmin];
	if(alevel > 0){
		SendClientMessage(playerid, COLOR_YELLOW,"____________________________________________");
		if(alevel >= 1){
		    SendClientMessage(playerid, COLOR_YELLOW,"______________________________________________________________________________________________________________________");
			SendClientMessage(playerid, COLOR_GREY,"~~Silent Admin~~");
			SendClientMessage(playerid, COLOR_WHITE, "Commands: /a(dmin chat) /spec /skick /sban /slap /ch /(n)mute /(ad)mute /setint /setworld /skiphosp /listguns");
			SendClientMessage(playerid, COLOR_WHITE, "Commands: /skiptut /refundnewbie /changekey /revive /lastad /warnings /cc /sendtols /wealth");
			SendClientMessage(playerid, COLOR_GREY,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 2){
		    SendClientMessage(playerid, COLOR_LIGHTGREEN,"______________________________________________________________________________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTGREEN,"~~Junior Admin~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /goto /gethere /sendtols /fine /jail /kick /ban /watch /slap /warn /detect /(un)mute /(un)freeze");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /cc /sethp /setarmor /setskin /noooc /nonewbie /listmuted /listmasked /bigears /skydive");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /cnn /checkprison /getip /ipcheck /setcarhp /god /godoff /dropallweapons /ofine /owarn");
            SendClientMessage(playerid, COLOR_LIGHTGREEN,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 3){
            SendClientMessage(playerid, COLOR_GREEN,"______________________________________________________________________________________________________________________");
            SendClientMessage(playerid, COLOR_GREEN,"~~General Admin~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /check /prison /release /setname /setaccent /sethpall /setarmorall /setfightstyle /nohospital /newnames");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /stealth /veh /rac /fixveh(all) /destroycar(s) /dcar(s) /mole /oldcar /(un)muteplayers /(un)freezeplayers /getbanreason");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /duel /startlotto /oipcheck /setvhp /rtc /ramps /disarm /(goto)mark /fourdive /removeinvalidmods /approve(deny)name");
            SendClientMessage(playerid, COLOR_GREEN,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 4){
            SendClientMessage(playerid, COLOR_SENIOR,"______________________________________________________________________________________________________________________");
		    SendClientMessage(playerid, COLOR_SENIOR,"~~Senior Admin~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /refund /setmoney /setstat /setcrime /setchamp /givemoney /givegun(all) /(give/take)lic /lastlogin");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /givetiki(all) /deletetikis /(make/delete)tiki /killcar /listcars /adivorce /acheckweed /removeweed");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /gotocar /goincar /editcar /carinfo /setcolor /setplayercolor /setweather /allowrobbank /savechars");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /banaccount /unban /moneybag /deletebag /deletebags /givenos(all) /blowup /checktreasurybalance /akill");
			SendClientMessage(playerid, COLOR_SENIOR,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 1337){
            SendClientMessage(playerid, COLOR_RED,"______________________________________________________________________________________________________________________");
		    SendClientMessage(playerid, COLOR_RED,"~~Head Admin~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /pban /(un)banip /rangeban /deleteaccount /osetname /addsurname /removesurname /asay /afake");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /gotohouse /gotobiz /gotodoor /gotogarage /edithouse /editdoor /editgarage /editgate /amovegate /dcreate");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /dedit /aouninvite /createfamily /editfamily /fdelete /pointtime /weatherall /vipresetgifts /reloadvipcars /setgrav");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /makeleader /makehelper /makeircadmin /tod /load /giveaccessory /removeaccessory");
            SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 99999){
            SendClientMessage(playerid, DEF_COL_RED,"______________________________________________________________________________________________________________________");
		    SendClientMessage(playerid, DEF_COL_RED,"~~Executive Admin~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /makevip /omakevip /vips /makefamed /makeeconomist /makedev /maketester /ochangepass /makesec");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /makegangdirector /makegangmod /makebanappealer /makefactionmod /makehousemod /makebizmod /hticket /makecomplaintmod");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /osetkey /amotd /setkey /payday /givepayday");
            SendClientMessage(playerid, DEF_COL_RED,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 100000){
			SendClientMessage(playerid, COLOR_ORANGE,"______________________________________________________________________________________________________________________");
		    SendClientMessage(playerid, COLOR_ORANGE,"~~Server Manager~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /makeadmin (/s)et(t)reasury(b)alance (/c)heck(t)reasury(b)alance /setprice");
            SendClientMessage(playerid, COLOR_ORANGE,"------------------------------------------------------------------------------------------------------------");
		}
		if(alevel >= 100001){
			SendClientMessage(playerid, COLOR_GREY,"______________________________________________________________________________________________________________________");
		    SendClientMessage(playerid, COLOR_GREY,"~~Comunity Director~~");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /server /okickadmin");
            SendClientMessage(playerid, COLOR_GREY,"------------------------------------------------------------------------------------------------------------");
		}
		if(PlayerInfo[playerid][pBanAppealer]){
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Ban Appealer:~~");
        SendClientMessage(playerid, COLOR_WHITE,"Commands:(/un)ban /banaccount /getip /getbanreason");
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		if(PlayerInfo[playerid][pGangModd]){
       		SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Gang Moderator:~~");
        	SendClientMessage(playerid, COLOR_WHITE,"Commands:/pointtime /editfamily /fstrike /fsetstrike /afstats");
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		if(PlayerInfo[playerid][pComplaintModd]){
       	 	SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
  			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Complaint Moderator:~~");
        	SendClientMessage(playerid, COLOR_WHITE, "Commands:/prison, /oprison");
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		if(PlayerInfo[playerid][pFactionMod]){
       	 	SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Faction Moderator:~~");
        	SendClientMessage(playerid, COLOR_WHITE, "Commands:/makeleader /aouninvite");
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		if(PlayerInfo[playerid][pGangDirector]){
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Gang Director:~~");
        	SendClientMessage(playerid, COLOR_WHITE, "Commands:/createfamily /fdelete /editfamily /fstrike /fsetstrike /afstats /pointtime /setmyfamily");
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		if(PlayerInfo[playerid][pBizMod]){
        	SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~Business Moderator:~~");
        	SendClientMessage(playerid, COLOR_WHITE, "Commands:/bizhelp");
        	SendClientMessage(playerid, COLOR_WHITE,"Commands: /gotobiz /asellbiz /getbizid /setbiztill /setbizentryfee /bizinfo /setbizenter /setbizexit /setbizname ");
			SendClientMessage(playerid, COLOR_WHITE,"Commands: /setbiztype /setbizprod /setbizprice /biztypes");
			SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
  		}
		if(PlayerInfo[playerid][pHouseMod]){
	 		SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________________________");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "~~House Moderator:~~");
        	SendClientMessage(playerid, COLOR_WHITE, "Commands:/ahousehelp");
			SendClientMessage(playerid, COLOR_LIGHTBLUE,"===================================================");
		}
		}else{
			SendClientMessage(playerid, COLOR_GREY,"   You are not authorized to use that command !");
		}
	return 1;
}



Re: Help with this command - Kane - 27.08.2017

Appear strins? What?


Re: Help with this command - BadJih - 27.08.2017

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Appear strins? What?
like this but with only one button (Okey)

http://i.imgur.com/undefined.png


Re: Help with this command - SuperHelper - 27.08.2017

Код:
CMD:ahelp
    {
        new string [944], giveid;
        strcat(string, "{15FF00}1.{FFFFFF}Level 1 Admin Commands\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/a(dmin chat) /spec /skick /sban /slap /ch /(n)mute /(ad)mute /setint /setworld /skiphosp /listguns\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/skiptut /refundnewbie /changekey /revive /lastad /warnings /cc /sendtols /wealth\n");
        strcat(string, "{15FF00}2.{FFFFFF}Level 2 Admin Commands\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/goto /gethere /sendtols /fine /jail /kick /ban /watch /slap /warn /detect /(un)mute /(un)freeze\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cc /sethp /setarmor /setskin /noooc /nonewbie /listmuted /listmasked /bigears /skydive\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cnn /checkprison /getip /ipcheck /setcarhp /god /godoff /dropallweapons /ofine /owarn\n");
        strcat(string, "{15FF00}3.{FFFFFF}Level 3 Admin Commands\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/check /prison /release /setname /setaccent /sethpall /setarmorall /setfightstyle /nohospital /newnames\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/stealth /veh /rac /fixveh(all) /destroycar(s) /dcar(s) /mole /oldcar /(un)muteplayers /(un)freezeplayers /getbanreason\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/duel /startlotto /oipcheck /setvhp /rtc /ramps /disarm /(goto)mark /fourdive /removeinvalidmods /approve(deny)name\n");
        strcat(string, "{15FF00}4.{FFFFFF}Level 4 Admin Commands\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/refund /setmoney /setstat /setcrime /setchamp /givemoney /givegun(all) /(give/take)lic /lastlogin\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/givetiki(all) /deletetikis /(make/delete)tiki /killcar /listcars /adivorce /acheckweed /removeweed\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/gotocar /goincar /editcar /carinfo /setcolor /setplayercolor /setweather /allowrobbank /savechars\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF} /banaccount /unban /moneybag /deletebag /deletebags /givenos(all) /blowup /checktreasurybalance /akill\n");
        strcat(string, "{15FF00}1337.{FFFFFF}Level 1337 Admin Commands\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/pban /(un)banip /rangeban /deleteaccount /osetname /addsurname /removesurname /asay /afake\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/gotohouse /gotobiz /gotodoor /gotogarage /edithouse /editdoor /editgarage /editgate /amovegate /dcreate\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/dedit /aouninvite /createfamily /editfamily /fdelete /pointtime /weatherall /vipresetgifts /reloadvipcars /setgrav\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/makeleader /makehelper /makeircadmin /tod /load /giveaccessory /removeaccessory\n");
        strcat(string, "{15FF00}99999.{FFFFFF}Level 99999 Admin Commands\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makevip /omakevip /vips /makefamed /makeeconomist /makedev /maketester /ochangepass /makesec\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makegangdirector /makegangmod /makebanappealer /makefactionmod /makehousemod /makebizmod /hticket /makecomplaintmod\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/osetkey /amotd /setkey /payday /givepayday\n");
        strcat(string, "{15FF00}100000.{FFFFFF}Level 100000 Admin Commands\n");
        strcat(string, "{15FF00}Level 100000 Commands:{FFFFFF}/makeadmin (/s)et(t)reasury(b)alance (/c)heck(t)reasury(b)alance /setprice\n");
        strcat(string, "{15FF00}100001.{FFFFFF}Level 100001 Admin Commands\n");
        strcat(string, "{15FF00}Level 100001 Commands:{FFFFFF}/server /okickadmin\n");
        strcat(string, "\n\n");
        ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Admin Commands", string, "OK", "");
        return 1;
    }
i hope this work


Respuesta: Help with this command - Miguelch1312 - 27.08.2017

What you want?
You want the code with the messages converted?
Or if you want to do it by yourself use "format" and "strcat", using that you can use your "if(alevel >= ...)"


Respuesta: Re: Help with this command - Miguelch1312 - 27.08.2017

Quote:
Originally Posted by SuperHelper
Посмотреть сообщение
Код:
CMD:ahelp
    {
        new string [944], giveid;
        strcat(string, "{15FF00}1.{FFFFFF}Level 1 Admin Commands\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/a(dmin chat) /spec /skick /sban /slap /ch /(n)mute /(ad)mute /setint /setworld /skiphosp /listguns\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/skiptut /refundnewbie /changekey /revive /lastad /warnings /cc /sendtols /wealth\n");
        strcat(string, "{15FF00}2.{FFFFFF}Level 2 Admin Commands\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/goto /gethere /sendtols /fine /jail /kick /ban /watch /slap /warn /detect /(un)mute /(un)freeze\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cc /sethp /setarmor /setskin /noooc /nonewbie /listmuted /listmasked /bigears /skydive\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cnn /checkprison /getip /ipcheck /setcarhp /god /godoff /dropallweapons /ofine /owarn\n");
        strcat(string, "{15FF00}3.{FFFFFF}Level 3 Admin Commands\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/check /prison /release /setname /setaccent /sethpall /setarmorall /setfightstyle /nohospital /newnames\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/stealth /veh /rac /fixveh(all) /destroycar(s) /dcar(s) /mole /oldcar /(un)muteplayers /(un)freezeplayers /getbanreason\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/duel /startlotto /oipcheck /setvhp /rtc /ramps /disarm /(goto)mark /fourdive /removeinvalidmods /approve(deny)name\n");
        strcat(string, "{15FF00}4.{FFFFFF}Level 4 Admin Commands\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/refund /setmoney /setstat /setcrime /setchamp /givemoney /givegun(all) /(give/take)lic /lastlogin\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/givetiki(all) /deletetikis /(make/delete)tiki /killcar /listcars /adivorce /acheckweed /removeweed\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/gotocar /goincar /editcar /carinfo /setcolor /setplayercolor /setweather /allowrobbank /savechars\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF} /banaccount /unban /moneybag /deletebag /deletebags /givenos(all) /blowup /checktreasurybalance /akill\n");
        strcat(string, "{15FF00}1337.{FFFFFF}Level 1337 Admin Commands\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/pban /(un)banip /rangeban /deleteaccount /osetname /addsurname /removesurname /asay /afake\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/gotohouse /gotobiz /gotodoor /gotogarage /edithouse /editdoor /editgarage /editgate /amovegate /dcreate\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/dedit /aouninvite /createfamily /editfamily /fdelete /pointtime /weatherall /vipresetgifts /reloadvipcars /setgrav\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/makeleader /makehelper /makeircadmin /tod /load /giveaccessory /removeaccessory\n");
        strcat(string, "{15FF00}99999.{FFFFFF}Level 99999 Admin Commands\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makevip /omakevip /vips /makefamed /makeeconomist /makedev /maketester /ochangepass /makesec\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makegangdirector /makegangmod /makebanappealer /makefactionmod /makehousemod /makebizmod /hticket /makecomplaintmod\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/osetkey /amotd /setkey /payday /givepayday\n");
        strcat(string, "{15FF00}100000.{FFFFFF}Level 100000 Admin Commands\n");
        strcat(string, "{15FF00}Level 100000 Commands:{FFFFFF}/makeadmin (/s)et(t)reasury(b)alance (/c)heck(t)reasury(b)alance /setprice\n");
        strcat(string, "{15FF00}100001.{FFFFFF}Level 100001 Admin Commands\n");
        strcat(string, "{15FF00}Level 100001 Commands:{FFFFFF}/server /okickadmin\n");
        strcat(string, "\n\n");
        ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Admin Commands", string, "OK", "");
        return 1;
    }
i hope this work
Yes, that'll work but he wants to show the lines with "if(alevel >= ...)" cause you did it well, but if your admin level is 1 you can see the lvl 3 commands and he doesn't want that, but this help a lot for him, he now only need to set some code


Re: Respuesta: Re: Help with this command - SuperHelper - 27.08.2017

Quote:
Originally Posted by Miguelch1312
Посмотреть сообщение
Yes, that'll work but he wants to show the lines with "if(alevel >= ...)" cause you did it well, but if your admin level is 1 you can see the lvl 3 commands and he doesn't want that, but this help a lot for him, he now only need to set some code
ye okay

thnx


Re: Help with this command - BadJih - 27.08.2017

Quote:
Originally Posted by SuperHelper
Посмотреть сообщение
Код:
CMD:ahelp
    {
        new string [944], giveid;
        strcat(string, "{15FF00}1.{FFFFFF}Level 1 Admin Commands\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/a(dmin chat) /spec /skick /sban /slap /ch /(n)mute /(ad)mute /setint /setworld /skiphosp /listguns\n");
        strcat(string, "{15FF00}Level 1 Commands:{FFFFFF}/skiptut /refundnewbie /changekey /revive /lastad /warnings /cc /sendtols /wealth\n");
        strcat(string, "{15FF00}2.{FFFFFF}Level 2 Admin Commands\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/goto /gethere /sendtols /fine /jail /kick /ban /watch /slap /warn /detect /(un)mute /(un)freeze\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cc /sethp /setarmor /setskin /noooc /nonewbie /listmuted /listmasked /bigears /skydive\n");
        strcat(string, "{15FF00}Level 2 Commands:{FFFFFF}/cnn /checkprison /getip /ipcheck /setcarhp /god /godoff /dropallweapons /ofine /owarn\n");
        strcat(string, "{15FF00}3.{FFFFFF}Level 3 Admin Commands\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/check /prison /release /setname /setaccent /sethpall /setarmorall /setfightstyle /nohospital /newnames\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/stealth /veh /rac /fixveh(all) /destroycar(s) /dcar(s) /mole /oldcar /(un)muteplayers /(un)freezeplayers /getbanreason\n");
        strcat(string, "{15FF00}Level 3 Commands:{FFFFFF}/duel /startlotto /oipcheck /setvhp /rtc /ramps /disarm /(goto)mark /fourdive /removeinvalidmods /approve(deny)name\n");
        strcat(string, "{15FF00}4.{FFFFFF}Level 4 Admin Commands\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/refund /setmoney /setstat /setcrime /setchamp /givemoney /givegun(all) /(give/take)lic /lastlogin\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/givetiki(all) /deletetikis /(make/delete)tiki /killcar /listcars /adivorce /acheckweed /removeweed\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF}/gotocar /goincar /editcar /carinfo /setcolor /setplayercolor /setweather /allowrobbank /savechars\n");
        strcat(string, "{15FF00}Level 4 Commands:{FFFFFF} /banaccount /unban /moneybag /deletebag /deletebags /givenos(all) /blowup /checktreasurybalance /akill\n");
        strcat(string, "{15FF00}1337.{FFFFFF}Level 1337 Admin Commands\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/pban /(un)banip /rangeban /deleteaccount /osetname /addsurname /removesurname /asay /afake\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/gotohouse /gotobiz /gotodoor /gotogarage /edithouse /editdoor /editgarage /editgate /amovegate /dcreate\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/dedit /aouninvite /createfamily /editfamily /fdelete /pointtime /weatherall /vipresetgifts /reloadvipcars /setgrav\n");
        strcat(string, "{15FF00}Level 1337 Commands:{FFFFFF}/makeleader /makehelper /makeircadmin /tod /load /giveaccessory /removeaccessory\n");
        strcat(string, "{15FF00}99999.{FFFFFF}Level 99999 Admin Commands\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makevip /omakevip /vips /makefamed /makeeconomist /makedev /maketester /ochangepass /makesec\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/makegangdirector /makegangmod /makebanappealer /makefactionmod /makehousemod /makebizmod /hticket /makecomplaintmod\n");
        strcat(string, "{15FF00}Level 99999 Commands:{FFFFFF}/osetkey /amotd /setkey /payday /givepayday\n");
        strcat(string, "{15FF00}100000.{FFFFFF}Level 100000 Admin Commands\n");
        strcat(string, "{15FF00}Level 100000 Commands:{FFFFFF}/makeadmin (/s)et(t)reasury(b)alance (/c)heck(t)reasury(b)alance /setprice\n");
        strcat(string, "{15FF00}100001.{FFFFFF}Level 100001 Admin Commands\n");
        strcat(string, "{15FF00}Level 100001 Commands:{FFFFFF}/server /okickadmin\n");
        strcat(string, "\n\n");
        ShowPlayerDialog(giveid, 44, DIALOG_STYLE_MSGBOX, "Server Admin Commands", string, "OK", "");
        return 1;
    }
i hope this work
Thanks bro but i levels... i want to show the level 1 comands only to the level 1 admins and ..... and higher level see all command above his level cmds