View Single Post
Author Message
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-20-2013 , 22:21   [TF2] Unassigned Player Kicker (v3.0)
Reply With Quote #1

Introduction
This plugin kicks people who waste a player slot by sitting on the team selection screen to idle. I've encountered players doing this many times, and it is incredibly annoying.

ConVars
  • sm_unassignedkicker_version - Standard version ConVar, nothing to see here.
  • sm_unassignedkicker_timer - How long (in seconds) should the timer be, before it checks the connected player's team? (Default = 600.0 seconds, equal to 10 minutes)
  • sm_unassignedkicker_message - What do you want the kick reason to say? (Default = "If you return, please join a team")
Oh, and just a side-note about the message ConVar: You do not need to add a period to your kick message. The game automatically adds one. For example, if you set your kick message to "Please join a team.", it'll show up as "Please join a team.." to people who get kicked.


Installation
  1. Download unassignedplayerkicker.smx
  2. Place the file in sourcemod/plugins folder.
  3. Set up the timer and message ConVars in your server.cfg file
  4. Load the plugin up ingame via RCON (rcon sm plugins load unassignedplayerkicker.smx)
  5. ???
  6. Profit!


Change Log
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (unassignedplayerkicker.sp - 879 views - 2.2 KB)

Last edited by 404UserNotFound; 10-20-2015 at 01:36. Reason: Updating!
404UserNotFound is offline