Raised This Month: $12 Target: $400
 3% 

How to change access level for restmenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 03-30-2004 , 16:47   How to change access level for restmenu
Reply With Quote #1

Ok, I would like to change the access level required for the restmenu. Right now it requries admin_cfg access level and I would like to change it to admin_cvar access level.

Who ever can tell me how to do this is the man!

Check out the attached sma file.
Attached Files
File Type: sma Get Plugin or Get Source (restmenu.sma - 1219 views - 18.0 KB)
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 03-30-2004 , 22:28  
Reply With Quote #2

Never mind I figured it out and it was very easy to change.
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 23:43  
Reply With Quote #3

And because you didn't tell anyone else what ya did to solve your problem... the next time someone comes on and does a search... they wont find the answer in this thread... good for you, bad for others...
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 03-31-2004 , 00:17  
Reply With Quote #4

Lol ok I will tell ya.

I changed the two bold lines below to ADMIN_CVAR which is the access level that I want to require for this plugin. It was that easy.

The reason why I did this is because I do not want to give out stats.cfg and plugin.cfg access but I do however still want my admins to have weapon restriction access.

If anyone is ever in the same situation as me hopefully this will help them out.

register_clcmd("amx_restmenu","cmdMenu",ADMIN_CFG,"- displays weapons restriction menu")
register_menucmd(register_menuid("#Buy", 1 ),511,"menuBuy")
register_menucmd(register_menuid("\yRestrict Weapons"),1023,"actionMenu")
register_menucmd(register_menuid("BuyPistol", 1 ),511,"menuPistol")
register_menucmd(register_menuid("BuyShotgun" , 1 ),511,"menuShotgun")
register_menucmd(register_menuid("BuySub", 1 ),511,"menuSub")
register_menucmd(register_menuid("BuyRifle", 1 ),511,"menuRifle")
register_menucmd(register_menuid("BuyMachine" , 1 ),511,"menuMachine")
register_menucmd(register_menuid("BuyItem", 1 ),511,"menuItem")
register_menucmd(-28,511,"menuBuy" )
register_menucmd(-29,511,"menuPistol" )
register_menucmd(-30,511,"menuShotgun")
register_menucmd(-32,511,"menuSub")
register_menucmd(-31,511,"menuRifle")
register_menucmd(-33,511,"menuMachine")
register_menucmd(-34,511,"menuItem")
register_concmd("amx_restrict","cmdRest",ADMIN_CFG,"- displays help for weapons restriction")
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
Reply



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 18:51.


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