Raised This Month: $ Target: $400
 0% 

Bypass ADMIN_IMMUNITY ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-06-2005 , 13:09   Bypass ADMIN_IMMUNITY ?
Reply With Quote #1

I want my plugin to be able to execute commands on admins with immunity as well as regular players. Basically, I wrote a plugin that sets a specified players rendering, to the specified #Value. The problem is all the admins with immunity, such as myself, are not allowed to execute it on themselves, unless immunity is removed. Of course I wouldnt want to do that...

Now, I have looked through the include files and found that the only thing I could really do is to set the admins flags to exclude immunity, and then reset them before HANDLE[ED]-ing the plugin, therefore allowing the command executability on the immunified admin. I have three questions regarding this statement.

1.) If this is performed, will it take effect immediately, or is it upon round start that the flags are re-checked?
2.) Is there a way to reload the flags? (I know theres a command to reload the admins, and I'm guessing that includes their flags as well. Please confirm this.)
3.) Is there not a command or something of that sort included in AMX Mod X, that would take care of this alittle more quickly, easily, and proficiently?

Thanks in advance,
Barry
dcyuri7 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-06-2005 , 13:10  
Reply With Quote #2

You mean this?
http://amxmodx.org/funcwiki.php?go=func&id=596
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-06-2005 , 13:14  
Reply With Quote #3

ahhh, very nice indeed. Now, according to that, it would go something like this:

cmd_target(id,player,1)

But would that not "Obey Immunity" ?
Maybe the 1 should be a 0? (0 is not on the list of flags for the function.)
dcyuri7 is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 13:16  
Reply With Quote #4

The 1 should be a 2.
XunTric is offline
dcyuri7
Junior Member
Join Date: Mar 2005
Location: Texas
Old 03-06-2005 , 13:17  
Reply With Quote #5

I appreciate your quick & helpful responses. Thanks again,
yuri

Last edited by dcyuri7; 11-13-2009 at 14:06.
dcyuri7 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-06-2005 , 13:18  
Reply With Quote #6

If you WANT to obey the immunity AND allow yourself..
Code:
cmd_target(id, player, 1 + 2)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 14:13.


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