Raised This Month: $ Target: $400
 0% 

Amxbans 6.x


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brisky
Junior Member
Join Date: Jun 2006
Old 07-09-2006 , 13:49   Re: Amxbans 4.3 (YoMama/Lux) [Updated 051028]
Reply With Quote #1

Hi, I'm trying to limit some of the new commands like amx_unban, amx_list, to admins with level H on v4.4b10. For example, this is what I have:

Code:
register_concmd("amx_unban","cmdUnBan",ADMIN_LEVEL_H,"<steamID>")
	register_srvcmd("amx_unban","cmdUnBan",-1,"<steamID>")
	register_concmd("amx_find","amx_find",ADMIN_LEVEL_H,"<steamID>")
	register_srvcmd("amx_find","amx_find",-1,"<steamID>")
	register_concmd("amx_findex","amx_findex",ADMIN_LEVEL_H,"<steamID>")
	register_srvcmd("amx_findex","amx_findex",-1,"<steamID>")
	register_concmd("amx_list","cmdLst",ADMIN_BAN,"Displays playerinfo")
I changed the commands I want for ADMIN_LEVEL_H, but it's not working. My other admins are still able to process the commands and I checked their flags too. Can anyone help?
Brisky is offline
Send a message via AIM to Brisky Send a message via Yahoo to Brisky
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 07-09-2006 , 14:00   Re: Amxbans 4.3 (YoMama/Lux) [Updated 051028]
Reply With Quote #2

Quote:
Originally Posted by Brisky
Hi, I'm trying to limit some of the new commands like amx_unban, amx_list, to admins with level H on v4.4b10. For example, this is what I have:

Code:
register_concmd("amx_unban","cmdUnBan",ADMIN_LEVEL_H,"<steamID>")
    register_srvcmd("amx_unban","cmdUnBan",-1,"<steamID>")
    register_concmd("amx_find","amx_find",ADMIN_LEVEL_H,"<steamID>")
    register_srvcmd("amx_find","amx_find",-1,"<steamID>")
    register_concmd("amx_findex","amx_findex",ADMIN_LEVEL_H,"<steamID>")
    register_srvcmd("amx_findex","amx_findex",-1,"<steamID>")
    register_concmd("amx_list","cmdLst",ADMIN_BAN,"Displays playerinfo")
I changed the commands I want for ADMIN_LEVEL_H, but it's not working. My other admins are still able to process the commands and I checked their flags too. Can anyone help?
Well that is strange.
Are you sure you updated the .amxx file also?

[EDIT]
I just changed tham amx_unban command to ADMIN_LEVEL_H and removed the t-flag from my access. After that I could not unban.
BTW dont change this
Code:
register_concmd("amx_list","cmdLst",0,"Displays playerinfo")
That is for live bans and not for admins.
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/

Last edited by lantz69; 07-09-2006 at 14:15.
lantz69 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 10:16.


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