[CS:S/CS:GO] ConnectFilter

Custom Packages that plugins can require for common usages.
User avatar
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow

[CS:S/CS:GO] ConnectFilter

Postby iPlayer » Fri Jul 14, 2017 11:23 pm

[CS:S/CS:GO] ConnectFilter

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.


Syntax: Select all

from connect_filter import 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

  1. Download the latest development snapshot of this package
  2. Extract contents of the SP-ConnectFilter-master directory to your mod folder
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image

Return to “Custom Packages”

Who is online

Users browsing this forum: No registered users and 2 guests