AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Admin can't ban superadmins (https://forums.alliedmods.net/showthread.php?t=311474)

LithuanianJack 10-19-2018 03:11

[REQ] Admin can't ban superadmins
 
Hello. I want to do that admin (with flag o) do not have permission to ban superadmins (with flag p). I don't want to use immunity to superadmins because then owners can't ban these supers.

What I have to do? I have simple code

PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Block Admins Without Immunity"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_ban""Check")
    
register_concmd("amx_kick""Check")
    
register_concmd("amx_slap""Check")
    
register_concmd("amx_slay""Check")
}

public 
Check(id) {
    new 
Victim[32]
    
    
read_argv(1Victim31)
    
    new 
player cmd_target(idVictim8)
    
    if(!
player)
        return 
PLUGIN_HANDLED
    
    
if(get_user_flags(id) & ADMIN_CVAR || !is_user_admin(player))
        return 
PLUGIN_CONTINUE
        
    
return PLUGIN_HANDLED



popilas 10-19-2018 08:48

Re: [REQ] Admin can't ban superadmins
 
https://c-s.net.ua/forum/topic86302....ner+Forum+Team

This work

Sita as naudoju

fysiks 10-19-2018 22:52

Re: [REQ] Admin can't ban superadmins
 
I'm not entirely sure how you have things set up but have you tried Admin Hierarchy?

LithuanianJack 10-22-2018 06:27

Re: [REQ] Admin can't ban superadmins
 
Quote:

Originally Posted by popilas (Post 2620376)

Thank's, it works! ;)

Dekui

Natsheh 10-22-2018 06:58

Re: [REQ] Admin can't ban superadmins
 
If you dont trust your admins why set them in the first place.?

D3XT3R 10-22-2018 14:13

Re: [REQ] Admin can't ban superadmins
 
Quote:

Originally Posted by Natsheh (Post 2620769)
If you dont trust your admins why set them in the first place.?

you cant understand the reason if you dont hoosting an servers populair! its for sell privilages babe..

Natsheh 10-23-2018 01:59

Re: [REQ] Admin can't ban superadmins
 
Quote:

Originally Posted by D3XT3R (Post 2620829)
you cant understand the reason if you dont hoosting an servers populair! its for sell privilages babe..

You tell me whats the point of banning admins?

D3XT3R 10-23-2018 11:54

Re: [REQ] Admin can't ban superadmins
 
Quote:

Originally Posted by Natsheh (Post 2620893)
You tell me whats the point of banning admins?

i will explain...
When an player buy an privilage as an superadmin has flag immunity, so no one can ban him and he is the most powerfull but ther is some people who pay $$$ 100eur+ for be more then him power and can ban him
so reason is $$$

Natsheh 10-23-2018 14:06

Re: [REQ] Admin can't ban superadmins
 
Quote:

Originally Posted by D3XT3R (Post 2620948)
i will explain...
When an player buy an privilage as an superadmin has flag immunity, so no one can ban him and he is the most powerfull but ther is some people who pay $$$ 100eur+ for be more then him power and can ban him
so reason is $$$

Your theory is just stupid and dont make sense get lost dextar.

Mordekay 10-23-2018 15:19

Re: [REQ] Admin can't ban superadmins
 
In other words he allows completely unknown guys to ban anyone he wants because he paid money. And those who had to much money can ban those guys.
Must be interesting as regular user to play there when you play better then those "admins"....


All times are GMT -4. The time now is 04:56.

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