AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS] Family Sharing Check/Block (https://forums.alliedmods.net/showthread.php?t=263697)

VirtualVelocity 05-31-2015 04:21

[CS] Family Sharing Check/Block
 
2 Attachment(s)
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
Setup
  1. Create a table named "plugin_familysharing".
  2. Make sure the table has 3 columns.
    CSTEAMID (Text)
    OSTEAMID (Text)
    TIMEJOINED (Int)
  3. Goto cstrike > addons > sourcemod > configs.
  4. In databases.cfg add:
    "familysharing"
    {
    "driver" "default"
    "host" "[host]"
    "database" "[database]"
    "user" "[username["
    "pass" "[password]"
    //"timeout" "0"
    "port" "3306"
    }
  5. Edit the host, database, username, and password fields.
  6. Move familysharing.smx into the SourceMod plugins foler.
  7. Restart your server.

Note
  • The database is for MySQL.
  • Time joined in a unix timestamp.

Darkness_ 05-31-2015 17:10

Re: [ANY] Family Sharing Check/Block
 
Nice plugin! However, I don't see the point of including cstrike and sdktools.

eric0279 05-31-2015 19:57

Re: [ANY] Family Sharing Check/Block
 
Hello,

don't work for L4D2...

DarkDeviL 05-31-2015 23:49

Re: [ANY] Family Sharing Check/Block
 
Quote:

Originally Posted by eric0279 (Post 2303414)
Hello,

don't work for L4D2...

Please elaborate and share very detailed information about what doesn't work, including any relevant log output, etc.

Developers cannot use your feedback at all without more information.

VirtualVelocity 06-01-2015 01:58

Re: [ANY] Family Sharing Check/Block
 
Quote:

Originally Posted by Darkness_ (Post 2303369)
Nice plugin! However, I don't see the point of including cstrike and sdktools.

Good point. I just copied it from my other plugins aha.

eric0279 06-01-2015 05:51

Re: [ANY] Family Sharing Check/Block
 
3 Attachment(s)
no error (sourcemod), no log and now?

connect to account shared, connect to my server and not kicked...

Plugin is loaded.

SM: 1.6.X.

First screen: request to shared from owner
second: send request
three: confirmed

also, i connect to my server CSS (game buy):
Quote:

status
hostname: DTC
version : 2230303/24 2234230 insecure
udp/ip : 192.168.1.2:27020 (public ip: 192.168.1.2)
steamid : [A-1:583447556(5537)] (90095774364775428)
map : de_dust2 at: 0 x, 0 y, 0 z
players : 1 humans, 0 bots (4 max)
# userid name uniqueid connected ping loss state
# 2 "UbeeXxX" STEAM_0:0:8656837 02:11 29 0 active


] status
hostname: L4D2
version : 2.1.3.9 5932 secure (unknown)
udp/ip : 192.168.1.40:27015 [ public 192.168.1.40:27015 ]
os : Linux Dedicated
map : c8m2_subway
players : 1 humans, 0 bots (10 max) (not hibernating) (unreserved)
I connect to shared account to my server L4D2:
Quote:

# userid name uniqueid connected ping loss state rate

# 3 "Bill" BOT active
# 4 "Francis" BOT active
# 5 "Zoey" BOT active
# 6 "Louis" BOT active
#end

VirtualVelocity 06-01-2015 07:44

Re: [ANY] Family Sharing Check/Block
 
Quote:

Originally Posted by eric0279 (Post 2303515)
no error (sourcemod), no log and now?

connect to account shared, connect to my server and not kicked...

Plugin is loaded.

SM: 1.6.X.

First screen: request to shared from owner
second: send request
three: confirmed

also, i connect to my server CSS (game buy):


I connect to shared account to my server L4D2:

Are you running the SteamWorks extension?

eric0279 06-01-2015 11:45

Re: [ANY] Family Sharing Check/Block
 
Quote:

Originally Posted by eric0279 (Post 2303515)
Plugin is loaded.

yes...

Quote:

[20] SteamWorks Extension (1.1): Exposes SteamWorks functions to Developers

Nanochip 06-01-2015 12:44

Re: [ANY] Family Sharing Check/Block
 
Nicely done, but I don't really understand: Is there something against people who are family sharing a game? :o

I mean I could see use for this plugin for like documentation/survey purposes - Finding out how often family sharing is used for example.

Darkness_ 06-01-2015 12:46

Re: [ANY] Family Sharing Check/Block
 
Quote:

Originally Posted by Nanochip (Post 2303654)
Nicely done, but I don't really understand: Is there something against people who are family sharing a game? :o

It can be used as a free method of evading community server bans.


All times are GMT -4. The time now is 05:32.

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