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

/bm access flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ck]ruberducky
Member
Join Date: Feb 2009
Location: In the moment
Old 03-29-2009 , 21:48   /bm access flags
Reply With Quote #1

my server (ip and such are in my sig), is running Hide and seek, and a very common plugin with hns is blockmaker. my problem is that i want to be able to give admin without giving blockmaker to someone because the default access flag is "u", i want to change it to "a" (immunity flag).

server runs off of linux OS and has amxx installed

the command to get the blockmaker menu up is "/bm" in chat.

I know how to change access flags but i dont know where the file is to change it or what the command is to restrict it.

** i need this because i sell admin, and i dont trust everyone with blockmaker

Thank You!

EDIT: oh and i dont necessarily need to disable someone from typing /bm, just if they do and dont have the access flags needed, nothing works and access is denied
__________________
[ck]ruberducky is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-29-2009 , 22:14   Re: /bm access flags
Reply With Quote #2

If you look at the top of blockmaker_v4.01.sma, you will see:
Code:
#define BM_ADMIN_LEVEL ADMIN_MENU
Just change that to:
Code:
#define BM_ADMIN_LEVEL ADMIN_IMMUNITY
And recompile the plugin.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
[ck]ruberducky
Member
Join Date: Feb 2009
Location: In the moment
Old 03-30-2009 , 01:03   Re: /bm access flags
Reply With Quote #3

i understand what to change, but does it make it so i can set the level of access required?

and i have no idea how to recompile it.

thank you
__________________
[ck]ruberducky is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 03-30-2009 , 15:30   Re: /bm access flags
Reply With Quote #4

Compiling Plugins
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
[ck]ruberducky
Member
Join Date: Feb 2009
Location: In the moment
Old 03-30-2009 , 21:21   Re: /bm access flags
Reply With Quote #5

ok so i changed the ADMIN_MENU to ADMIN_LEVEL_N (it might not be the right command), im trying to use the custom level n, because im using that lvl to handle all my blockmaker stuff.

first i did cd /hlds/addons/amxmodx/scripting, then i did the ./amxxpc blockmaker_v4.01.sma command, but when i do it i get this message

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

blockmaker_v4.01.sma(383) : error 017: undefined symbol "ADMIN_LEVEL_N"
blockmaker_v4.01.sma(383) : warning 215: expression has no effect
blockmaker_v4.01.sma(383) : error 001: expected token: ";", but found ")"
blockmaker_v4.01.sma(383) : error 029: invalid expression, assumed zero
blockmaker_v4.01.sma(383) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Aborted

so i followed the steps acoording to this http://wiki.amxmodx.org/Compiling_Plugins_(AMX_Mod_X)#Linux making sure i did the linux version of the steps, and this keeps happening. Also when it finishes i typed "ls" to see if anything had changed, and there was a file called blockmaker_v4.01.amx BUT it was empty. Im a noob when it comes to sma files and coding stuff, so maybe im missing something key, i dont know.

Please help. Thank You.
__________________
[ck]ruberducky is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-31-2009 , 13:53   Re: /bm access flags
Reply With Quote #6

http://www.amxmodx.org/funcwiki.php?...=1#const_admin
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
[ck]ruberducky
Member
Join Date: Feb 2009
Location: In the moment
Old 03-31-2009 , 20:33   Re: /bm access flags
Reply With Quote #7

thanks guys, works like a charm!
__________________
[ck]ruberducky is offline
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 14:42.


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