Note:
This plugin is an old idea that i had it but i didn't made it becouse on that times didn't have the knowledge to do it. I remember that i requested an idea similar to this and Exolent made it the plugin, but... this plugin is coded by me and started by 0. But why not, credits to Exolent.
Also, the code is not really NEW, have something like 1 or 2 mounths ago, and optimized somethings today.
Description:
Maybe you know about Admin Check plugin by OneEyed or others similar plugins. Well, "All Admins Status Menu" have a similar base (show admins) but with some important differences. This plugin show ALL admins that are registered in users.ini (except STEAMID for now). But the show of the admins, is not by chat or hud message, is by MENU. Other special thing is that show the actual status per admin (Online or Offline).
Also, if you select an admin in the menu you can see some information of him (Real Name, Email and Status). But if you want, you can set some or all information as private (per admin). All this configurations can be made using users.ini file.
Requirements:
But only if you want to install this plugin in Counter-Strike game, if not you should comment this part:
Code:
/*
* Comment this if you don't want to install the plugin in Counter-Strike game
*/
#define USE_CSTRIKE
And also this:
Code:
/*
* Comment this if you want chat color prints, for the information things
* But you have to know that this only work on Counter-Strike
*/
#define USE_CHAT_COLOR
Commands:
- /adms - Show the Admins Status Menu
- /admins - Show the Admins Status Menu
SMA Configuration:
The only thing you want to edit is this:
Code:
/*
* Uncomment this if you want to destroy the menu after a player select an option
* To uncomment this you only have to remove the "//"
*/
//#define DESTROY_MENU
Plugin Configuration:
When you select an admin option in the menu, you can see some information about the admin selected. To configure this informations you have to use the users.ini
Like you know, to add a simple admin you use this:
Quote:
|
< name/ip/steamid > < password > < first flags > < second flags >
|
But now, you have new parameters:
Quote:
|
< name/ip/steamid > < password > < first flags > < second flags > < Real Name > < Email > < Status >
|
Also, you can hide some infos adding "private" to the parameter that you want to hide. And if you want to set all the information as private you have to put "allprivate" to the first parameter (Real Name) and thats all.
Here some examples of how to use users.ini to add information:
Quote:
"Alucard" "password" "abcdefghijklmnopqrstu" "ab" "Laureano Miceli" "[email protected]" "Owner"
"DVD Jon" "password" "abcdefghijklmnopqrstu" "ab" "Jon Lech Johanse" "private" "Admin"
"Coool" "password" "abcdefghijklmnopqrstu" "ab" "allprivate"
|
Warning: You have to add info to ALL players registered in users.ini (except STEAMID's), if you don't want to show information just use "private" on all parameters or "allprivate" in the first or "" to all parameters but don't leave without nothing... here some BAD examples:
Quote:
"Alucard" "password" "abcdefghijklmnopqrstu" "ab" "private"
"Alucard" "password" "abcdefghijklmnopqrstu" "ab"
"Alucard" "password" "abcdefghijklmnopqrstu" "ab" "Laureano Miceli" "[email protected]"
|
Images:
To-Do List:
-
Change read_file to fopen, fgets, and thats other natives...
- Some type of support for STEAM_ID
- More info parameters to add
- Add multillingual system
Credits:
- Exolent[jNr] - I Learned how to use dinamics arrays looking a plugin of him
- Speed - Suggested me something of STEAM_ID detection (by flags)
Changelog:
- Version 0.2.0
- Version 0.2.7
- Cstrike module required now, only if you want to install in this game
- Added more defines for preprocessors (ChatColor, Cstrike)
- BuyIcon hide/draw only in Counter-Strike game
- ChatColor.inc requirement removed, code included to this plugin
- Added a delay to load admins in users.ini to prevent from crash
- Changed old files natives to "new" files natives
* You can see the old changelog (or non-public changelog) in the source code