Page 1 of 1

[CS:S/CS:GO] ConnectFilter

Posted: Fri Jul 14, 2017 11:23 pm
by iPlayer
[CS:S/CS:GO] ConnectFilter

https://github.com/KirillMysnik/SP-ConnectFilter

Description
This custom package provides ConnectFilter decorator that will allow you to reject clients on early stages of the connection process.

Huge thanks to Ayuto for diving into Source authentication and finding out how to obtain unvalidated SteamID right when the client connects.

Usage

Syntax: Select all

from connect_filter import ConnectFilter


@ConnectFilter
def connect_filter(client):

# Check client's (unvalidated!) SteamID
if client.steamid == "STEAM_1:1:60368989":

# Reject the client
return "You're not allowed around here"

# Don't reject
return None


Installation
  1. Download the latest development snapshot of this package
  2. Extract contents of the SP-ConnectFilter-master directory to your mod folder