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

Toggle Immunity (UPDATED: 07/1/06)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Half-Life        Category:   Server Management        Approver:   devicenull (200)
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 08-09-2004 , 18:38   Toggle Immunity (UPDATED: 07/1/06)
Reply With Quote #1

Toggle Immunity by Slmclarengt
Formerly Known as VotorX's Change immune (see Reason for re-writing for more information)

Description:

Allows an administrator with the flag of ADMIN_RCON (l) to have the capability of removing another administrators or even their own immunity, thus leaving the victim vulnerable to all admin commands.

Credit(s):

VotorX (original author - for original version)
slmclarengt (myself - for idea and for rewriting it)
And all people who made suggestions/requests/comments

Cvars:
sv_allowignore <0|1> - controls whether to allow admins the ability to remove/set immunity of users. Default 1.
disclude_self <0|1> - disclude self from immunity being revoked. Default 1.

Use:
amx_immuneoff <name | #userid>
amx_immuneon <name | #userid>
amx_globalimmuneoff - Turns immunity off of everyone w/ immunity
amx_globalimmuneon - Turns immunity on for everyone authorized
amx_teamimmuneon < 1 for T, 2 for CT > - turns specified Team's immunity on
amx_teamimmuneoff < 1 for T, 2 for CT > - turns specified Team's immunity off


Reason for re-writing:

I re-wrote this plugin because VotorX's version was confusing, hard to read, did not do it's function, was messy, was unorganized, and in general, was just too complex and intricate.

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

Newest version:
3.12b (7/1/06)
3.12 (5/13/06)
3.11 (05/08/06)
3.1 (05/07/06)
3.0 (01/05/06)

Changelog:
(7/1/06) - 3.12b):
Fixed code for amx_globalimmuneoff
Fixed code for amx_globalimmuneon
Optimized and moved comments to become more organized
(05/13/06 - 3.12):
Rewrote code for amx_globalimmuneoff
Rewrote code for amx_globalimmuneon
Optimized code to avoid unnecessary memory allocations
(05/07/06 - 3.1):
Added amx_globalimmuneoff to remove immunity from everyone who has it
Added amx_globalimmuneon to restore immunity to those authorized
(01/05/06 - 3.0):
Re-written for optimization and logic
All known errors/bugs/warnings/typos diminished
sv_allowignore cvar does it's function
No more errors or warnings on compilation

NOTE: Ignore all posts dating prior to January 5th, 2006 as they are inaccurate.
Attached Files
File Type: sma Get Plugin or Get Source (amx_toggleimmune.sma - 7294 views - 10.5 KB)
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!

Last edited by slmclarengt; 04-27-2007 at 23:44.
slmclarengt is offline
 



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 21:43.


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