[ANY] Advanced Admin List
Features:
- Players can view the online admin list.
- Admins can remain invisible in the admin list for stealth circumstances.
- Server Owners can track admins' activity by using the command /adminstime.
- Auto reset for admins' activity per week (as the default value).
- SQLite system that saves all the data.
Visibility idea was taken from a plugin which I can no longer find now.
NOTE: Admins are being added to the admin list by the KICK flag, which currently cannot be edited.
ConVars:
- sm_admins_vip - Should VIPs appear in the admin list? 1 - yes, 0 - no. (default: 0)
- sm_admins_adminflag - Admin Flag in letters, as written in admin_levels.cfg (default: 'c')
- sm_admins_vipflag - VIP Flag in letters, as written in admin_levels.cfg (default: 'o')
- sm_admins_resetime - Crontab code for reset activity. (default: 0 0 * * 5)
- sm_admins_minimum - Minimum time in minutes for admins to be active on the server. (default: 420)
Commands:
- sm_admins - Command for players to view online admins.
- sm_admins <0/1> - Command for admins to enable/disable visibility (default flag: KICK).
- sm_hours - Command for admins to view their activity in HH:MM format (default flag: KICK).
- sm_adminstime - Command for Server Owners to view their admins' activity (default flag: ROOT).
Installation:
- Place the .smx file in addons/sourcemod/plugins
- Add the code to addons/sourcemod/configs/databases.cfg:
Code:
"AdminList"
{
"driver" "sqlite"
"database" "AdminList"
}
- Reload the map and enjoy!
Todo:
Changelog:
Code:
1.1.4 - Fixed Current result set has no fetched rows issue.
1.1.3 - Added sm_admins_adminflag convar that supports custom flag tracking.
1.1.2 - Fixed minor error.
1.1.1 - Added support for temporary admins.
1.1 - Improved reset system with crontab.
1.0 - Initial Release.
__________________