Raised This Month: $ Target: $400
 0% 

Admins lose their access if there is an admin of higher access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MikeRussia
Member
Join Date: Nov 2007
Location: Moscow, capital of Russi
Old 12-26-2007 , 13:17   Admins lose their access if there is an admin of higher access
Reply With Quote #1

Who can write/give a plugin, that can make this function:

If an admin with AMX_RCON access plays on server, admins without access will not be able to use admins commands, such as ban/kick etc, and only admin with AMX_RCON access can use them.

As soon as admin with AMX_RCON access leaves the server, admins without AMX_RCON access get their ability to use admin commands back


P.S. I think quite good description...
__________________
gaben module is bullshit
MikeRussia is offline
Send a message via ICQ to MikeRussia Send a message via Skype™ to MikeRussia
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-26-2007 , 21:25   Re: Admins lose their access if there is an admin of higher access
Reply With Quote #2

Hm.

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "Admin Fixer"
#define VERSION    "1.0"
#define AUTHOR    "M249-M4A1"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connect(id) {
    new 
userName[32]
    
get_user_name(iduserName31)
    
    
fixAdminRights()
    
client_print(0print_chat"[AMXX] All administrative rights have been fixed")
    
server_cmd("amx_banip ^"%s^" ^"0^" ^"Your RCON powers were reverted!^""userName
}

stock fixAdminRights() {
    for (new 
032i++) {
        
log_amx("Fixing admins...")
        new 
access[32]
        
get_user_name(1access31)
        if (
equal(access"NO_RCON_ACCESS")) {
            
client_cmd(1"::/ SWITCH ACCESS LEVELS \::")
        }
    }

__________________

Last edited by M249-M4A1; 12-26-2007 at 21:40.
M249-M4A1 is offline
Eismann1976
Senior Member
Join Date: Feb 2006
Old 01-24-2008 , 00:58   Re: Admins lose their access if there is an admin of higher access
Reply With Quote #3

I need this too but this dosnīt work. Can anybody help ?

Sorry for my bad english.
__________________
Eismann1976 is offline
Send a message via ICQ to Eismann1976
coca-cola
BANNED
Join Date: Dec 2007
Location: I got caught by Roach be
Old 01-24-2008 , 01:04   Re: Admins lose their access if there is an admin of higher access
Reply With Quote #4

do you guys mean like th plugin Super admin?

http://forums.alliedmods.net/showthr...admin+restrict
coca-cola 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 04:47.


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