Raised This Month: $32 Target: $400
 8% 

How Do I Make # Menus Open?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Regulate
Member
Join Date: Mar 2004
Old 03-28-2004 , 04:49   How Do I Make # Menus Open?
Reply With Quote #1

For some reason some menus anr't abled for my admin.

4. Team Player is #'ed
8. Client Commands is #'ed
4. Stats Settings is #'ed
6. Restrict Weapons is #'ed
Teleport Player is #'ed

How do i make these open?
__________________
-Reg
Regulate is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-28-2004 , 05:01  
Reply With Quote #2

because those are for CS, and you aren't running CS are you?
Johnny got his gun is offline
Regulate
Member
Join Date: Mar 2004
Old 03-28-2004 , 05:20  
Reply With Quote #3

CS:CZ. So...yes.

Messing around some more, i can open the menu threw the command to open it, but not in the menu.

Exsample: amxmodmenu, 9, 4. 4 is #. But if i type in amx_statscfgmenu the menu will open.

Why is this?
__________________
-Reg
Regulate is offline
Dubie
Member
Join Date: Mar 2004
Old 03-28-2004 , 13:39  
Reply With Quote #4

All you need to know, this should fix it.
http://forums.alliedmods.net/showthread.php?t=470
__________________
www.dubie.net
CS Server 1.6 CS-HQ Necropolis
69.65.18.18:27015
CZ Server CS-HQ Necropolis Source
69.65.18.19:27015
HL2DM Server CS-HQ Fraginator HL2DM
66.135.38.47:27016
Dubie is offline
Send a message via MSN to Dubie
Regulate
Member
Join Date: Mar 2004
Old 03-29-2004 , 01:01  
Reply With Quote #5

Question:
I changed these g_cstrikeRunning all to g_czeroRunning
Where do i find that file at?

no, you should change the is_running("cstrike") to is_running("czero").
Exsample?

Not sure what to do with that post, but i think my stats only record shot as well...
__________________
-Reg
Regulate is offline
mICKE
Member
Join Date: Mar 2004
Location: Sthlm, Sweden
Old 03-29-2004 , 01:12  
Reply With Quote #6

to get it to work:

open menufront.sma
go to line 130
find g_cstrikeRunning = is_running("cstrike")
change to g_cstrikeRunning = is_running("The_mod_that_you_use")
save
compile
mICKE is offline
Send a message via ICQ to mICKE
Regulate
Member
Join Date: Mar 2004
Old 04-01-2004 , 23:30  
Reply With Quote #7

Ok i dont know how to open thoes files, or compile. Could u direct me to a step by step how to, or tell me here.

Thx.
__________________
-Reg
Regulate is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 04-05-2004 , 05:57   Teleportmenu greyed out
Reply With Quote #8

I have a little problem. I always thought, that a little writing problem was the cause, why I could not teleport. Now I fixed that problem, but the menu 7 Teleport is still greyed out. But if I type amx_teleportmenu into the console it works fine. I have the problem with counterstrike. I'm running a cs 1.6-Steamdedicatedserver under Linux.

There are other menupoints greyed out too. The playercommandmenu for example...
Isobold is offline
[WOA]-FireFox
Junior Member
Join Date: May 2004
Location: Seoul, South Korea
Old 05-02-2004 , 09:36   Real Fix To # IN AMXMODMENU
Reply With Quote #9

Open Up the menufront.sma from your dir /scripting.

open with notepad or wordpad.

find this....

new g_menuAccess[MENUS_NUMBER][2] = {
{ADMIN_KICK,0},
{ADMIN_BAN,0},
{ADMIN_SLAY,0},
{ADMIN_LEVEL_A,1}, <--Here

{ADMIN_MAP,0},
{ADMIN_MAP,0},

{ADMIN_MENU,0},
{ADMIN_LEVEL_A,0},

// Next Page

{ADMIN_MENU,0},
{ADMIN_CVAR,0},
{ADMIN_MENU,0},
{ADMIN_CFG,1}, <--Here

{ADMIN_CFG,0},
{ADMIN_CFG,1}, <--Here

{ADMIN_LEVEL_A,0}



change all the 1's at the end to Zeros. Then The # will Be the Number.

like this....

new g_menuAccess[MENUS_NUMBER][2] = {
{ADMIN_KICK,0},
{ADMIN_BAN,0},
{ADMIN_SLAY,0},
{ADMIN_LEVEL_A,0}, <--see here

{ADMIN_MAP,0},
{ADMIN_MAP,0},

{ADMIN_MENU,0},
{ADMIN_LEVEL_A,0},

// Next Page

{ADMIN_MENU,0},
{ADMIN_CVAR,0},
{ADMIN_MENU,0},
{ADMIN_CFG,0}, <--see here

{ADMIN_CFG,0},
{ADMIN_CFG,0}, <--see here

{ADMIN_LEVEL_A,0}

then recompile it by running the compile.bat in the same folder and grab the .amx recompiled plugin menufront.amx from the folder compiled
and place it in your /amxx/plugins folder.


Makes since huh??

And for all thos people posting replies that do not work, Try it Urself Before Posting cause ur clogging the forum with BAD info


If U Don't feel like doing the work Download it from here::
Attached Files
File Type: amx menufront.amx (3.2 KB, 237 views)
[WOA]-FireFox is offline
hawkeye
New Member
Join Date: Apr 2004
Location: Sweden
Old 05-06-2004 , 18:14  
Reply With Quote #10

I don't like hardcoded code (unless you have no option, or there is no reason too do it any other way)

You can modify your menufront to work with both mods (czero,cstrike) by slightly modifying the code.

change g_cstrikeRunning to for exampel g_modRunning
use replace to catch every string and change them

change inside the following routine
Code:
public plugin_init()
{
  register_plugin("Menus Front-End","0.16b","AMXX Dev Team")  

  register_menucmd(register_menuid("AMX Mod X Menu"),1023,"actionMenu") 
  register_clcmd("amxmodmenu","cmdMenu",ADMIN_MENU,"- displays menus")    
  
  g_modRunning =  is_running("cstrike")
  if (!g_modRunning)
    g_modRunning =  is_running("czero")	
    
  g_funModule = is_module_loaded("Fun")
}
I haven't done any extensive testing yet, all I know is that for now it works with boyh mods without any problems. You may replace the "b" after 0.16 to whatever you want, I only use it so I and my friends easily can see whitch plugins are under work/modified. All credits still remains to the AMXX mod Team, keep up the good work.

( Using small ain't my cup of tea so there may be some errors, my profession lies in VB/C/C++)

//Hawkeye
hawkeye is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode