AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Sven Co-op administrator icons for AMXX (https://forums.alliedmods.net/showthread.php?t=219613)

AdamR 06-30-2013 19:58

Sven Co-op administrator icons for AMXX
 
2 Attachment(s)
Overview

This plug-in will build the file containing a list of administrators for Sven Co-op, usually "admins.txt" or pointed to with CVAR "adminsfile", which is then used to graphically denote whom server administrators are on the in-game score board. Owners will also get the tinted gold graphic, which is read from those users with the ADMIN_RCON flag (L).

The automated graphic will help players spot imposter administrators. It will also allow administrators to use Sven Co-op's build-in cheat commands, providing that the sv_cheats CVAR is set to 2. (players will still not be able to use cheats)

It will also provide server administrators with a command to optionally hide their graphic, which is remembered across map changes. Both the textual and SQL user list formats are supported, though your database table will need a new column to remember administrator visibility preference.

This requires Sven Co-op 4.5 or later, though owners will not show up at all without Sven Co-op 4.8 or later.


Installation

If you are not using SQL you will need to re-compile the plug-in with the "#define USING_SQL" line commented.

If you are using SQL you will need to execute this SQL query to modify your users table:
Code:

ALTER TABLE `admins` ADD `hideicon` TINYINT( 1 ) NOT NULL DEFAULT 0
After that simply place the "sven_adminicons.amxx" plug-in file with the rest of yours, add its' entry to "plugins.ini", and it'll work right away.


Usage

Most of this is handled automatically. It's not designed to be complicated :)

The list is re-built on the start of every map, though you can do it manually mid-game using server command "amx_adminlist_build"

Administrators can input "amx_hideadmin" to toggle their graphic, or input "amx_hideadmin 0" or "amx_hideadmin 1" to explicitly hide/show their graphic.

Remember: Only the server owners/managers, should have the ADMIN_RCON flag (L) to be denoted as such in-game.


All times are GMT -4. The time now is 20:01.

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