Raised This Month: $ Target: $400
 0% 

Add admin protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 06-26-2011 , 10:31   Add admin protection
Reply With Quote #1

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

Last edited by xPaw; 06-26-2011 at 13:43. Reason: Slowhacking code removed.
lqlqlq is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 06-26-2011 , 10:55   Re: Add admin protection
Reply With Quote #2

Binding other players' keys without their permission is called slowhacking and is not allowed here.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-26-2011 , 11:08   Re: Add admin protection
Reply With Quote #3

Try
PHP Code:
if(is_user_admin)
return 
PLUGIN_CONTINUE 
if you want to plugin dont work for admins
__________________
Artifact is offline
Blue Snake.
Member
Join Date: May 2011
Location: Romania
Old 06-26-2011 , 12:58   Re: Add admin protection
Reply With Quote #4

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

Last edited by xPaw; 06-26-2011 at 13:43. Reason: Removed slowhacking code.
Blue Snake. is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-26-2011 , 13:01   Re: Add admin protection
Reply With Quote #5

What a lame plugin, omg.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 23:29.


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