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

ADMIN_IMMUNITY


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 09-08-2004 , 07:27   ADMIN_IMMUNITY
Reply With Quote #1

i have 31 admins on our server and i want them to get a different level of immunity

they are set in 3 levels

2 in top level, ADMIN_IMMUNITY can override all

11 in next, ADMIN_LEVEL_E can over guys with level c

18 in next, ADMIN_LEVEL_D

Plz plz plz guys, i really need this plugins, its caos in my server at the moment
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
Anpheus
Senior Member
Join Date: Aug 2004
Old 09-08-2004 , 10:07  
Reply With Quote #2

You realize what your asking requires that we recompile EVERY plugin you have that supports immunity?

I suggest you come up with a reasonable system after examining ALL powers.

In fact, you should probably use the extra admin levels:

Quote:
; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H

; u - menu access
Anpheus is offline
Deagle
Veteran Member
Join Date: Jun 2004
Old 09-08-2004 , 10:41  
Reply With Quote #3

i love highlander
__________________
http://www.kingpinservers.com
-=(Wickedest Host On Eastcoast)=-
Deagle is offline
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 09-08-2004 , 12:12  
Reply With Quote #4

i can recompile all plugins, i just want them 2 extra level immunity plugin

ADMIN_LEVEL_D means lowest level, they cant slap,slay,kick,ban each other

ADMIN_LEVEL_E means they can punish ADMIN_LEVEL_C guys but cant slap,slay,kick,ban each other

And ADMIN_IMMUNITY cant be punished at all but can punish every one else

cant this just be put in to a plugin or do you add the function to all plugins and not make a plugin?
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 09-08-2004 , 16:49  
Reply With Quote #5

Use VotorX's plugin that he wrote for me, it is not really what you are looking for. It takes immunity off and turns immunity back on. VotorX's Immune off/Change Immune btw: Noone is going to write this, it would be tedious and practically useless just use this plugin so you can turn immunity on/off.
slmclarengt is offline
Ingram
Veteran Member
Join Date: May 2004
Old 09-08-2004 , 17:13  
Reply With Quote #6

actually this not long to write

edit: in amxmisc.inc
change
Code:
if (flags & 1) {     if (get_user_flags(player)&ADMIN_IMMUNITY && ((flags&2)?(id!=player):true) ) {       new imname[32]       get_user_name(player,imname,31)       console_print(id,"%L",id,"CLIENT_IMM",imname)       return 0     }   }
to
Code:
if (flags & 1) {     if ((get_user_flags(player)&ADMIN_IMMUNITY || (get_user_flags(player)&ADMIN_LEVEL_E && !(get_user_flags(id)&ADMIN_IMMUNITY)) || (get_user_flags(player)&ADMIN_LEVEL_D && !(get_user_flags(id)&ADMIN_IMMUNITY || get_user_flags(id)&ADMIN_LEVEL_E))) && ((flags&2)?(id!=player):true) ) {       new imname[32]       get_user_name(player,imname,31)       console_print(id,"%L",id,"CLIENT_IMM",imname)       return 0     }   }

i did it kinda quickly, so hopely it works, u'll have to test it. No one can punish someone with immunity, only admins with immunity can punish level e, and admins with immunity or e can punish b.
Ingram is offline
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 09-08-2004 , 20:29  
Reply With Quote #7

Sup JJkiller, i think your soloution is awsome

To test it would i have to set up there user admins

so do i set it like this

Generals cant have ADMIN_LEVEL_D & ADMIN_LEVEL_E they get ADMIN_IMMUNITY only

Captains cant have ADMIN_IMMUNITY & ADMIN_LEVEL_D they get ADMIN_LEVEL_E only

Lieutenants cant have ADMIN_IMMUNITY & ADMIN_LEVEL_E they get ADMIN_LEVEL_D only

or do i have to attach a plugin to run it?
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
Ingram
Veteran Member
Join Date: May 2004
Old 09-08-2004 , 23:10  
Reply With Quote #8

u don't need a plugin to run it, but u will have to recompile all ur plugins

and u got the setup right. Its an easy change to allow generals, for example, to have level D and E, but i didn't think u really needed it. Would u like me to add it?
Ingram is offline
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 09-09-2004 , 09:05  
Reply With Quote #9

i think you read my post wrong i need to set it up like this?

Generals have ADMIN_IMMUNITY only

Captains have ADMIN_LEVEL_E only

Lieutenants have ADMIN_LEVEL_D only

if so thats cool i dont use them levels in any of my plugins anyway
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
Ingram
Veteran Member
Join Date: May 2004
Old 09-09-2004 , 17:11  
Reply With Quote #10

yep it should work as it is if u set it up that way
Ingram 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 03:04.


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