AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Add admin protection (https://forums.alliedmods.net/showthread.php?t=160215)

lqlqlq 06-26-2011 10:31

Add admin protection
 
On this code i need to be added admin flag check, when admin have level "A", not to perform the action disconnect.

nikhilgupta345 06-26-2011 10:55

Re: Add admin protection
 
Binding other players' keys without their permission is called slowhacking and is not allowed here.

Artifact 06-26-2011 11:08

Re: Add admin protection
 
Try
PHP Code:

if(is_user_admin)
return 
PLUGIN_CONTINUE 

if you want to plugin dont work for admins

Blue Snake. 06-26-2011 12:58

Re: Add admin protection
 
But instead of disconnect, you should use kick with a reason, for exmple bind his keys to "aaaaa" and then public aaaaa(id) with server_cmd kick #get_user_audith(id) and reason not allow to press key...

bibu 06-26-2011 13:01

Re: Add admin protection
 
What a lame plugin, omg.


All times are GMT -4. The time now is 23:29.

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