Raised This Month: $198 Target: $400
 49% 

Sven Co-op administrator icons for AMXX


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 06-30-2013 , 19:58   Sven Co-op administrator icons for AMXX
Reply With Quote #1

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.
Attached Thumbnails
Click image for larger version

Name:	svencoop-adminicons-example.jpg
Views:	1193
Size:	77.6 KB
ID:	121991  
Attached Files
File Type: sma Get Plugin or Get Source (sven_adminicons.sma - 508 views - 17.3 KB)
__________________
Thanks,

Adam Reece - Sven Co-op team.
AdamR is offline
Send a message via Skype™ to AdamR
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 08:58.


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