[CS] Family Sharing Check/Block
Posted: Mon Jan 27, 2020 4:17 pm
Family Sharing Check/Block
A simple way of logging, and blocking users that are family sharing.
Features
A simple way of logging, and blocking users that are family sharing.
CvarsToggle between logging the attempt and not logging the attempt.
Toggle between kicking the player and not kicking the player.
Tells all players on the server when an attempt is made to connect.
Logs the connections to a database, which can be integrated with a web UI.
Requirementsfs_kick - Toggle between kicking the player and allowing the player to connect. (Default: 1)
fs_log - Toggle between logging the player in a database or not logging. (Default: 1)
SteamWorks: https://forums.alliedmods.net/showthread.php?t=229556
Setup
Create a table named "plugin_familysharing".
Make sure the table has 3 columns.
CSTEAMID (Text)
OSTEAMID (Text)
TIMEJOINED (Int)
Goto cstrike > addons > sourcemod > configs.
In databases.cfg add:
"familysharing"Edit the host, database, username, and password fields.{
"driver" "default"
"host" "[host]"
"database" "[database]"
"user" "[username["
"pass" "[password]"
//"timeout" "0"
"port" "3306"
}
Move familysharing.smx into the SourceMod plugins foler.
Restart your server.
SMX File
Download
Source