AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Take admin privileges (https://forums.alliedmods.net/showthread.php?t=229284)

kmman 11-04-2013 15:50

Take admin privileges
 
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



akcaliberg 11-04-2013 16:22

Re: Take admin privileges
 
Go users.ini and delete him.

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

YamiKaitou 11-04-2013 16:23

Re: Take admin privileges
 
set_user_flags adds to the existing flags, so you have to remove the flags first.

kmman 11-04-2013 16:31

Re: Take admin privileges
 
Quote:

Originally Posted by akcaliberg (Post 2056921)
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?

YamiKaitou 11-04-2013 16:38

Re: Take admin privileges
 
Quote:

Originally Posted by kmman (Post 2056926)
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

fysiks 11-04-2013 23:19

Re: Take admin privileges
 
A temporary ban would work too.


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

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