Raised This Month: $ Target: $400
 0% 

'SpyAdmin' Toggles your admin ON/OFF v1.01


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Brad (55)
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-05-2006 , 17:10   'SpyAdmin' Toggles your admin ON/OFF v1.01
Reply With Quote #1

If you ever needed to test if a plugin to see if its only available to admins, this would be helpful and easy to use.

But anyways, its called SpyAdmin because, you type /spy and it hides your admin, and also, my purpose of making this was so that pretty much you can catch other admins abusing, they do NOT have to know about the command, the command can be used by everyone but if they have no admin to begin with they wont be able to obtain admin.

Code:
// by Smokey
// USAGE: say /spy, toggles your admin on/off
// USAGE(Command #2) amx_spyadmin - Same as say /spy but in console
Anyways, this has been tested, and works, enjoy.
Attached Files
File Type: sma Get Plugin or Get Source (spyadmin.sma - 4068 views - 1.3 KB)
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-05-2006 , 21:16  
Reply With Quote #2

Choose a category for this to get approved.

Unrelated to approval, I'd suggest you make an ini file where server ops can specify the Steam ID's of those that can use the command. Then, only do anything if the person attempting to use the command is on the list. If they're not on the list, nothing happens.
__________________
Brad is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-05-2006 , 23:27  
Reply With Quote #3

I added a category, I'll update it with a list of steamids that can use the thing later, but accpet it for now.
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
nuked
Member
Join Date: Oct 2009
Old 08-21-2010 , 10:56   Re: 'SpyAdmin' Toggles your admin ON/OFF v1.01
Reply With Quote #4

Quote:
Originally Posted by Smokey485 View Post
I added a category, I'll update it with a list of steamids that can use the thing later, but accpet it for now.
4 years later - and nothing more.... ;)
__________________
If it's not you it has to be them
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
chungsy
Member
Join Date: Nov 2011
Old 03-17-2012 , 20:47   Re: 'SpyAdmin' Toggles your admin ON/OFF v1.01
Reply With Quote #5

Can someone make a reverse version for this plugin?

So it's like, when admin connect, the plugin will automatically hide their flags (ADMIN_IMMUNITY only)
chungsy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-07-2015 , 08:32   Re: 'SpyAdmin' Toggles your admin ON/OFF v1.01
Reply With Quote #6

Here is a fixed version of the plugin. Only players with a specific flag can use the command (the flag can be easily be changed with a cvar). Also, a option to automatically hide the flags has been added.

Last edited by OciXCrom; 04-08-2015 at 07:36.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
mykey
Member
Join Date: Dec 2005
Location: UK
Old 05-06-2006 , 07:52  
Reply With Quote #7

Sounds very useful, and I like Brads idea of controlling who can use it.
Thanks.
__________________
Gungame League Launches September 2007!
mykey is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 05-06-2006 , 11:34   Re: 'SpyAdmin' Toggles your admin ON/OFF
Reply With Quote #8

Quote:
Originally Posted by Smokey485
Code:
// by Smokey
// USAGE: say /spyadmin, toggles your admin on/off
might wanna change that to the right say command

but anyway.. good idea
__________________
diamond-optic is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 08-31-2006 , 23:02   Re: 'SpyAdmin' Toggles your admin ON/OFF
Reply With Quote #9

Quote:
Originally Posted by diamond-optic View Post
might wanna change that to the right say command

but anyway.. good idea
In the SMA file:
Code:
 	register_plugin("SpyAdmin v1", "1.01", "Smokey485")
	register_clcmd("say /spy", "spy_toggle", -1)
	register_clcmd("amx_spyadmin", "spy_toggle", -1)
Change to
Code:
	register_plugin("SpyAdmin v1", "1.01", "Smokey485")
	register_clcmd("say /spy", "spy_toggle", -1)
	register_clcmd("say /<your say command here>", "spy_toggle", -1)
	register_clcmd("amx_spyadmin", "spy_toggle", -1)
@Raz: In Sma

Change
Code:
	register_clcmd("say /spy", "spy_toggle", -1)
TO

Code:
       register_clcmd("say /spy", "spy_toggle", <FLAG>)
SEE http://www.amxmodx.org/funcwiki.php?...=1#const_admin to find the flag you desire.

@Xerxes

Same as Raz.

Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 11-27-2016 , 03:00   Re: 'SpyAdmin' Toggles your admin ON/OFF
Reply With Quote #10

Quote:
Originally Posted by slmclarengt View Post
In the SMA file:
Code:
 	register_plugin("SpyAdmin v1", "1.01", "Smokey485")
	register_clcmd("say /spy", "spy_toggle", -1)
	register_clcmd("amx_spyadmin", "spy_toggle", -1)
Change to
Code:
	register_plugin("SpyAdmin v1", "1.01", "Smokey485")
	register_clcmd("say /spy", "spy_toggle", -1)
	register_clcmd("say /<your say command here>", "spy_toggle", -1)
	register_clcmd("amx_spyadmin", "spy_toggle", -1)
Slmclarengt
PHP Code:
register_clcmd("amx_spyadmin""spy_toggle", -1
>>>>>

PHP Code:
register_concmd("amx_spyadmin""spy_toggle", -1

Last edited by shehzad1234; 11-27-2016 at 03:22.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
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 18:59.


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