Hello, this is my first plugin however I do believe that it has a fair amount of usefulness for server administrators who want to get player feedback on other members of their server. I've created a plugin that allows players to do !like and !dislike on other players with a message.
Features:
- (Obviously) No SQL Injection
- MySQL and SQLite Support
- Complete configurability over cooldowns
- Useful messages that say how long their cooldown is
- Cooldowns use the database to prevent players from bypassing it
Installation:
Move the Feedback.xms file into your
\csgo\addons\sourcemod\plugins folder.
Create a new
feedback database under your
csgo\addons\sourcemod\configs\databases.cfg, it can be either MySQL or SQLite (other database types untested).
ConVars / Configuration:
sm_cooldown_like - Seconds of delay between being able to use sm_like
sm_cooldown_dislike - Seconds of delay between being able to use sm_dislike
sm_cooldown_shared - If 1, both sm_like and sm_dislike will be under the same cooldown
sm_cooldown_global - If 1, cooldown is for giving feedback to any player instead of the same player
sm_cooldown_simple - If not 0, the cooldown does not sync with database, is global, and shared (overrides shared and global convars)
Commands:
sm_like [Player] [Message] - Gives positive feedback towards a player
sm_dislike [Player] [Message] - Gives negative feedback towards a player
[ADMIN_ROOT] sm_deletefeedback [Steam64] - Deletes all feedback from a player
[ADMIN_ROOT] sm_clearfeedback [Steam64] - Deletes all feedback towards a player
GitHub:
https://gist.github.com/MSWS/2ed64b4...49595638f10123