Raised This Month: $51 Target: $400
 12% 

[CS] Family Sharing Check/Block


Post New Thread Reply   
 
Thread Tools Display Modes
Author
VirtualVelocity
Junior Member
Join Date: Mar 2014
Plugin ID:
4654
Plugin Version:
5.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Checks if a player is using a shared game
    Old 05-31-2015 , 04:21   [CS] Family Sharing Check/Block
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (familysharing.sp - 671 views - 5.5 KB)
    File Type: smx familysharing.smx (12.0 KB, 518 views)

    Last edited by VirtualVelocity; 06-09-2015 at 03:03.
    VirtualVelocity is offline
    Darkness_
    Veteran Member
    Join Date: Nov 2014
    Old 05-31-2015 , 17:10   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #2

    Nice plugin! However, I don't see the point of including cstrike and sdktools.

    Last edited by Darkness_; 05-31-2015 at 19:58.
    Darkness_ is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 05-31-2015 , 19:57   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #3

    Hello,

    don't work for L4D2...
    eric0279 is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 05-31-2015 , 23:49   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #4

    Quote:
    Originally Posted by eric0279 View Post
    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.
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].
    DarkDeviL is offline
    VirtualVelocity
    Junior Member
    Join Date: Mar 2014
    Old 06-01-2015 , 01:58   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #5

    Quote:
    Originally Posted by Darkness_ View Post
    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.
    VirtualVelocity is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 06-01-2015 , 05:51   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #6

    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)] (9009577436477542
    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
    Attached Images
    File Type: jpg Pas de nom.jpg (13.5 KB, 546 views)
    File Type: jpg Pas de nom1.jpg (14.8 KB, 541 views)
    File Type: jpg Pas de nom2.jpg (5.3 KB, 538 views)

    Last edited by eric0279; 02-16-2016 at 21:36.
    eric0279 is offline
    VirtualVelocity
    Junior Member
    Join Date: Mar 2014
    Old 06-01-2015 , 07:44   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #7

    Quote:
    Originally Posted by eric0279 View Post
    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?
    VirtualVelocity is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 06-01-2015 , 11:45   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #8

    Quote:
    Originally Posted by eric0279 View Post
    Plugin is loaded.
    yes...

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

    Last edited by eric0279; 06-01-2015 at 11:48.
    eric0279 is offline
    Nanochip
    Senior Member
    Join Date: Jan 2014
    Old 06-01-2015 , 12:44   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #9

    Nicely done, but I don't really understand: Is there something against people who are family sharing a game?

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

    Last edited by Nanochip; 06-01-2015 at 12:45.
    Nanochip is offline
    Darkness_
    Veteran Member
    Join Date: Nov 2014
    Old 06-01-2015 , 12:46   Re: [ANY] Family Sharing Check/Block
    Reply With Quote #10

    Quote:
    Originally Posted by Nanochip View Post
    Nicely done, but I don't really understand: Is there something against people who are family sharing a game?
    It can be used as a free method of evading community server bans.
    Darkness_ is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:27.


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