Jump to content

Get admin menu working ?


Riddlez

Recommended Posts

The file is in @EpochHive and called epochAH

 

F1 brings the menu up. 

 

Problem I am having is that even with the high admin using spawn its still gray and can't be clicked on. Anyone know if there is something that needs to be changed? 

 

 

adminMenu_Owner[] = {{"XXXXXXXXXXXX","Jackalope"}}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...}; ADMINNAME will be used for the Admin log instead of in-game name.
/*
Available Settings:
"PLAYER-TELEPORT" => Teleport Admin To Player and Player To Admin
"MAP-TELEPORT" => Click on Map to Teleport
"TARGET-HEAL" => Heal Target
"TARGET-AMMO" => Give Target Ammo
"TARGET-KILL" => Kill Target
"VEHICLEFLIP" => Flip Vehicle
"BANPANNEL" => Access to Banpannel
"SPAWN-MENU" => Access to Spawn Menu
*/
adminMenu_High[] = {{"XXXXXXXXXXXX","Jackalope"}}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...};
adminMenu_HighSetting[] = {"SPAWN-MENU","PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL","TARGET-AMMO","TARGET-KILL","VEHICLEFLIP","BANPANNEL"};
adminMenu_Low[] = {}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...};
adminMenu_LowSetting[] = {"PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL"};
adminMenu_BanReasons[] = {"Traderzone","Hacking","Glitch","Combat Log"};
Link to comment
Share on other sites

 

The file is in @EpochHive and called epochAH

 

F1 brings the menu up. 

 

Problem I am having is that even with the high admin using spawn its still gray and can't be clicked on. Anyone know if there is something that needs to be changed? 

 

 

adminMenu_Owner[] = {{"XXXXXXXXXXXX","Jackalope"}}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...}; ADMINNAME will be used for the Admin log instead of in-game name.
/*
Available Settings:
"PLAYER-TELEPORT" => Teleport Admin To Player and Player To Admin
"MAP-TELEPORT" => Click on Map to Teleport
"TARGET-HEAL" => Heal Target
"TARGET-AMMO" => Give Target Ammo
"TARGET-KILL" => Kill Target
"VEHICLEFLIP" => Flip Vehicle
"BANPANNEL" => Access to Banpannel
"SPAWN-MENU" => Access to Spawn Menu
*/
adminMenu_High[] = {{"XXXXXXXXXXXX","Jackalope"}}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...};
adminMenu_HighSetting[] = {"SPAWN-MENU","PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL","TARGET-AMMO","TARGET-KILL","VEHICLEFLIP","BANPANNEL"};
adminMenu_Low[] = {}; //{{"STEAMID","ADMINNAME"},{"STEAMID","ADMINNAME2"},...};
adminMenu_LowSetting[] = {"PLAYER-TELEPORT","MAP-TELEPORT","TARGET-HEAL"};
adminMenu_BanReasons[] = {"Traderzone","Hacking","Glitch","Combat Log"};

 

could it be the use of the double "{{ }}", where one would normally suffice If just using one value?

For example adminMenu_High[]= {"XXXXXXXXX","Jackalope"};

Link to comment
Share on other sites

Double brackets are there for the array.

 

Only other thing that I can think of is that your trying to define yourself twice.

So you've put your steamID and name in the owner array, but then in the admin_high array.

All i have on mine is the Owner array, and I get the options on my server.

Shane

He is correct. Think of yourself as Super Admin ie Owner. then the next level would be High Admin, then low. Double brackets are required because it is an array in case you want to add another "Owner" admin.

You only need to define yourself one time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...