Raised This Month: $106 Target: $400
 26% 

Advanced Admin Removal (through console)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Emp` (115)
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-28-2007 , 21:12   Advanced Admin Removal (through console)
Reply With Quote #1

Advanced Admin Removal (through console)


Ever wanted to get rid of that pesky admin that has been troubling you for a while now, but you haven't gotten around to opening up users.ini to remove him/her?

Well then this plugin is just for you!

Anybody with rcon access simply type:

Code:
amx_removeadmin "STEAMID (or part of their username)"


and the line will automatically be commented with a semi-colon within users.ini

Absolutely no more hassle with those pesky admins!





Code:
v0.2 -- Added user name removal.

Next version: SQL compatibility, optimized file natives, etc.
Attached Files
File Type: sma Get Plugin or Get Source (remove_admins.sma - 5670 views - 2.4 KB)

Last edited by SweatyBanana; 05-29-2007 at 20:19. Reason: v0.2
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-28-2007 , 21:14   Re: In Game Admin Removal
Reply With Quote #2

About time.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-28-2007 , 21:33   Re: In Game Admin Removal
Reply With Quote #3

Check if they're in the game and take away their flags if they are.

Actually, make it so you can pass a name or userid.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 05-28-2007 , 21:57   Re: In Game Admin Removal
Reply With Quote #4

Nice! Helps for those servers (non dedicated) that require you to hook up to the FTP server and edit it. Gets quite annoying.

Nice job!
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-28-2007 , 23:15   Re: In Game Admin Removal
Reply With Quote #5

Maybe this will stop the large number of people asking how to remove admin through console?

But yea... nice job. This shoulda been done long ago.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 05-28-2007 , 23:37   Re: In Game Admin Removal
Reply With Quote #6

What about just removing some of their flags?
__________________
Bad_Bud is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-29-2007 , 01:30   Re: In Game Admin Removal
Reply With Quote #7

Quote:
Originally Posted by Hawk552 View Post
Check if they're in the game and take away their flags if they are.

Actually, make it so you can pass a name or userid.
Working on it
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-29-2007 , 01:47   Re: In Game Admin Removal
Reply With Quote #8

There one big problem with all this ie. (change name, reconnect). They will get admin back. Since currently admins are held in memory in admin.sma. So your going to have to force a reload of the admin using the command.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-29-2007 , 02:03   Re: In Game Admin Removal
Reply With Quote #9

Uploaded new version.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-29-2007 , 02:07   Re: In Game Admin Removal
Reply With Quote #10

Approved. Letting it sit here for a little bit so people can see it.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 14:36.


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