AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY]Watchlist (https://forums.alliedmods.net/showthread.php?t=132954)

dmustanger 07-20-2010 12:01

[ANY]Watchlist
 
3 Attachment(s)
Watchlist allows admins to add players they suspect of breaking server rules to a list.

Every x minutes (configurable from cvar), a broadcast message is sent to admins stating all players who are in the server and on the watchlist.

If you are upgrading to version 2.0.1 you must install the new watchlist.cfg and watchlist.phrases.txt and plugin of course.
Installation
1. Copy the watchlist.smx file into gamemod/addons/sourcemod/plugins
2. Copy the watchlist.phrases.txt into gamemod/addons/sourcemod/translations
3. Edit the watchlist.cfg and copy into gamemod/cfg/sourcemod
3. Add the below code to your databases.cfg (gamemod/addons/sourcemod/configs)

For MySQL (Use this if you have a remote Mysql server and more than one game server)
Code:

"watchlist"
{
        "driver"            "mysql"
        "host"                "db_host"
        "database"            "db_name"
        "user"                "db_user"
        "pass"                "db_pass"
}

For sqlite (Use this if you have only 1 game server)
Code:

"watchlist"
{
        "driver"          "sqlite"
        "database"      "watchlist"
}

Server ConVars
- watchlist_adminflag - Controls what admin flag a admin must have to use the watchlist. Deafault is c (kick flag).
- watchlist_announce - Controls how the watchlist will be announced. Default is 3 (both).
- watchlist_announce_interval - Controls how often (in whole minutes) a brodcast message is sent with players on the server that are on the Watchlist. Default is 1.0.
- watchlist_sound_enabled - Enables a warning sound to admins when a WatchList player is announced. Default is 1 (on).
- watchlist_log_enabled - Enables logging. Default is 0 (off).
- watchlist_auto_delete - Controls how long in days to keep a player on the watchlist before it is auto deleted.
- watchlist_admin_join - If set to 1, when a admin joins he will get a list of players on the watchlist that are on the server in the console.

Usage
- watchlist_add "steam_id | #userid | name" "reason" - Allows admins to add a player to the watchlist by steamid, userid or name.
- watchlist_remove "steam_id | #userid | name" - Allows admins to remove a player from the watchlist by steamid, userid or name.
- watchlist_query "steamid | online"- Querys the database. You can search for a steamid or all players that are online. Leave blank to search all.

Changelog

v1.0.0
- Initial Release.

v2.0.0
- Fixed the problem that was preventing the plugin from announcing the players on the watchlist
- Plugin now stores userid's in the database instead of client index's.
- Changed convar watchlist_logging_enabled to watchlist_log_enabled.
- Added convar watchlist_adminflag.
- Added convar watchlist_announce.
- You can now use watchlist_query "STEAM_0:0:0000" to search for a steamid
- You can now use watchlist_query "online" to search for all players that are on only that server and are online.

v2.0.1
- Added convar watchlist_auto_delete
- Added convar watchlist_admin_join
- Added Brazilian Portuguese translation (Thanks caxanga334)

To Do
Make a suggestion?

Thanks To
recon0 for the original plugin.

DontWannaName 07-20-2010 14:50

Re: Watchlist
 
You edited this one and couldnt wait for cadav0r to release his new version..

http://forums.alliedmods.net/showthr...t=67400&page=9

dmustanger 07-20-2010 16:04

Re: Watchlist
 
he posted that over 6 months ago and not a word from him.
Also if you read threw the pages there i was the one to get the mysql to work proper.

DontWannaName 07-20-2010 22:27

Re: Watchlist
 
He posted in another thread he would be releasing his soon.

Annihilator 07-21-2010 07:43

Re: Watchlist
 
A few questions :P
1.Does this plugin send the watchlist to all the players or just admins?
2.Is the player saved in the watchlist until an admin removes him from there, or deletes it after he leaves the server (auto delete after x days would be nice)?
3.Does it show only players in the watchlist who are online?
4.Is it possible for multiple servers to use the same db, so that they could share the watchlist? (It would be a nice addition to our servers for multi-server player tracking)

dmustanger 07-21-2010 12:32

Re: Watchlist
 
1.just admins with the kick and root flag
2.he is on the watchlist untill an admin removes him. i can add an auto delete after x days. (added this to my to do list)
3.yes it will only broadcast if they are on the server.
4.yes just use mysql

TheBigD 07-22-2010 15:29

Re: Watchlist
 
I'm having a problem getting persistent storage through map changes using the sqlite database entry. The "add to watch" "remove from watch" commands work, but on map changes the list goes away. I'm not seeing anything in the error logs either. Any suggestions how I can troubleshoot this?

Thank you for getting this plugin updated btw.

dmustanger 07-22-2010 15:32

Re: Watchlist
 
goto cstrike/cfg/sourcemod/watchlist.cfg and change "watchlist_logging_enabled" from 0 to 2 and see if you get anything in the logs.

TheBigD 07-22-2010 16:00

Re: Watchlist
 
Getting this repeated.

L 07/22/2010 - 19:58:48: [watchlist.smx] Query Failed T_generic: no such column: CURDATEDEF

sinblaster 07-22-2010 18:41

Re: Watchlist
 
looks like a great idea, knowing my admins the list will be 10 pages long but still very useful, will try it on CSS DM when its quiet. thanks


All times are GMT -4. The time now is 13:19.

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