Raised This Month: $ Target: $400
 0% 

amx_ban command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Forgotten00
Junior Member
Join Date: May 2005
Location: Canada
Old 05-11-2005 , 21:20   amx_ban command
Reply With Quote #1

How do I set make it so I can have admins only ban but not unban unless the person who has RCON can unban?
__________________
Forgotten00 is offline
Send a message via AIM to Forgotten00 Send a message via MSN to Forgotten00
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-11-2005 , 21:26  
Reply With Quote #2

In your amxx\scripting folder. Open the file admincmd.sma in notepad or something.

Look for this line in there.
register_concmd("amx_unban","cmdUnban",ADMIN_ BAN,"<authid or ip>")

change ADMIN_BAN for Flag for example ADMIN_LEVEL_A is m flag. etc. Look in the amxconst.inc in the include folder it tells what ADMIN_BAN flag is etc. Change it to the one you want then recompiled, upload it to your server. Restart the server or change map.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Forgotten00
Junior Member
Join Date: May 2005
Location: Canada
Old 05-11-2005 , 21:40  
Reply With Quote #3

I mean, if there is an admin with access "D", I want the admin to be able to ban (use amx_ban) but that user can not unban, the only user that can unban is a admin with level "L"
__________________
Forgotten00 is offline
Send a message via AIM to Forgotten00 Send a message via MSN to Forgotten00
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-11-2005 , 22:50  
Reply With Quote #4

register_concmd("amx_unban","cmdUnban",ADMIN_ RCON,"<authid or ip>")

Simple as that. Replace the old line with this one and Recompile it. Now only admins with Flag L can unban. If you listen to what i said.

Here you go for future reference

Quote:
#define ADMIN_ALL 0 /* everyone */
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK (1<<2) /* flag "c" */
#define ADMIN_BAN (1<<3) /* flag "d" */
#define ADMIN_SLAY (1<<4) /* flag "e" */
#define ADMIN_MAP (1<<5) /* flag "f" */
#define ADMIN_CVAR (1<<6) /* flag "g" */
#define ADMIN_CFG (1<<7) /* flag "h" */
#define ADMIN_CHAT (1<< /* flag "i" */
#define ADMIN_VOTE (1<<9) /* flag "j" */
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
#define ADMIN_RCON (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G (1<<1 /* flag "s" */
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
#define ADMIN_MENU (1<<20) /* flag "u" */
#define ADMIN_ADMIN (1<<24) /* flag "y" */
#define ADMIN_USER (1<<25) /* flag "z" */
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Forgotten00
Junior Member
Join Date: May 2005
Location: Canada
Old 05-11-2005 , 23:59  
Reply With Quote #5

thankies!
__________________
Forgotten00 is offline
Send a message via AIM to Forgotten00 Send a message via MSN to Forgotten00
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 16:43.


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