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

[REQ] Admin can't ban superadmins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 10-19-2018 , 03:11   [REQ] Admin can't ban superadmins
Reply With Quote #1

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


Last edited by LithuanianJack; 10-19-2018 at 03:48.
LithuanianJack is offline
popilas
Senior Member
Join Date: Apr 2017
Location: lituanica
Old 10-19-2018 , 08:48   Re: [REQ] Admin can't ban superadmins
Reply With Quote #2

https://c-s.net.ua/forum/topic86302....ner+Forum+Team

This work

Sita as naudoju
popilas is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-19-2018 , 22:52   Re: [REQ] Admin can't ban superadmins
Reply With Quote #3

I'm not entirely sure how you have things set up but have you tried Admin Hierarchy?
__________________

Last edited by fysiks; 10-19-2018 at 22:55.
fysiks is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 10-22-2018 , 06:27   Re: [REQ] Admin can't ban superadmins
Reply With Quote #4

Quote:
Originally Posted by popilas View Post
Thank's, it works! ;)

Dekui
LithuanianJack is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-22-2018 , 06:58   Re: [REQ] Admin can't ban superadmins
Reply With Quote #5

If you dont trust your admins why set them in the first place.?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-22-2018 , 14:13   Re: [REQ] Admin can't ban superadmins
Reply With Quote #6

Quote:
Originally Posted by Natsheh View Post
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..
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-23-2018 , 01:59   Re: [REQ] Admin can't ban superadmins
Reply With Quote #7

Quote:
Originally Posted by D3XT3R View Post
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?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-23-2018 , 11:54   Re: [REQ] Admin can't ban superadmins
Reply With Quote #8

Quote:
Originally Posted by Natsheh View Post
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 $$$
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-23-2018 , 14:06   Re: [REQ] Admin can't ban superadmins
Reply With Quote #9

Quote:
Originally Posted by D3XT3R View Post
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.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-23-2018 , 15:19   Re: [REQ] Admin can't ban superadmins
Reply With Quote #10

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"....
__________________

Mordekay is offline
Reply


Thread Tools
Display Modes

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:39.


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