Raised This Month: $ Target: $400
 0% 

Take admin privileges


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmman
Senior Member
Join Date: Sep 2012
Old 11-04-2013 , 15:50   Take admin privileges
Reply With Quote #1

Hi all
how to Take an admin privileges from him?
(for example when he's banning all players or swearing ...)

I used this script but not working
PHP Code:
public not_admin(id){
new 
flags read_flags("z")
set_user_flags(id,flags,0)
return 
PLUGIN_HANDLED


Last edited by kmman; 11-04-2013 at 16:04.
kmman is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 11-04-2013 , 16:22   Re: Take admin privileges
Reply With Quote #2

Go users.ini and delete him.

Plus, set_user_flags native doesn't set users' flags. It adds.

Last edited by akcaliberg; 11-04-2013 at 16:23.
akcaliberg is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-04-2013 , 16:23   Re: Take admin privileges
Reply With Quote #3

set_user_flags adds to the existing flags, so you have to remove the flags first.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
kmman
Senior Member
Join Date: Sep 2012
Old 11-04-2013 , 16:31   Re: Take admin privileges
Reply With Quote #4

Quote:
Originally Posted by akcaliberg View Post
Go users.ini and delete him.

Plus, set_user_flags native doesn't set users' flags. It adds.
good idea
but it's for temporary use not for ever.

Quote:
Originally Posted by YamiKaitou
set_user_flags adds to the existing flags, so you have to remove the flags first.
thanks YamiKaitou
how can I set flags not add them?
kmman is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-04-2013 , 16:38   Re: Take admin privileges
Reply With Quote #5

Quote:
Originally Posted by kmman View Post
thanks YamiKaitou
how can I set flags not add them?
Use remove_user_flags to remove the flags first, then set the new flags using set_user_flags
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-04-2013 , 23:19   Re: Take admin privileges
Reply With Quote #6

A temporary ban would work too.
__________________
fysiks 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 11:09.


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