Page 1 of 1

[CS] Family Sharing Check/Block

Posted: Mon Jan 27, 2020 4:17 pm
by Andreeas
Family Sharing Check/Block
A simple way of logging, and blocking users that are family sharing.
Features
Toggle 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.
Cvars
fs_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)
Requirements
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"
{
"driver" "default"
"host" "[host]"
"database" "[database]"
"user" "[username["
"pass" "[password]"
//"timeout" "0"
"port" "3306"
}
Edit the host, database, username, and password fields.
Move familysharing.smx into the SourceMod plugins foler.
Restart your server.

SMX File
Download
Source