View Single Post
Author Message
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 06-29-2011 , 21:35   Free Player Sanctions
Reply With Quote #1

Description

This plugin allows server admins to place various sanctions on F2P players. The currently available options are:
  • Renamer
    • Add tags to the beginning/end of Freebers' names.
    • Optional automatic name truncation.
    • Name change handling (after 15 seconds)
    • Option to only change name in chat
  • Gag/Muter
    • Gag all Freebers (no chat)
    • Mute all Freebers (no voicecomm)
  • Taunt Blocking - Freebers cannot taunt
  • Hat blocking - Freebers cannot wear hats (coming soon)
  • Spray blocking - Freebers cannot spray
  • Force Freebers to a random team and class on join (they are free to change afterwards).
  • Send a chat message to all Freebers, not premium players.
  • Kicking of all Freebers


Commands

sm_frbr_say MESSAGE - Send MESSAGE to all Freebers in the server.


CVars

sm_frbr_rename_enable - Enable (1) or Disable renaming Freebers
sm_frbr_ftag - Name Tag for Free users
sm_frbr_position - Position of Name Tag (0=front 1=back)
sm_frbr_truncate - Truncate client names for tag to fit
sm_frbr_rename_chatonly - Only add Name Tag to chat messages.

sm_frbr_gag_enable - Enable (1) or Disable (0) gagging of Freebers.
sm_frbr_mute_enable - Enable (1) or Disable (0) muting of Freebers.

sm_frbr_tauntblock_enable - Allow (0) or disallow (1) taunting by Freebers.

sm_frbr_strip_enable - Set to 1 to strip hats from Freebers.

sm_frbr_kick_enable - Set to 1 to kick all Freebers upon connection.

sm_frbr_sprayblock_enable - Allow (0) or disallow (1) sprays by Freebers.

sm_frbr_forceteam_enable - If set to 1, force Freebers to join a team as soon as they connect.
sm_frbr_forceclass_enable - If set to 1, force Freebers to pick a class as soon as they connect.


Requisites

SteamTools


Installation

Place tf2_free_sanctions.smx in addons/sourcemod/plugins


ToDo

-Restrict Freebers to only stock weapons.
-Remove hats from freebers (coming soon)
-??? Post below!


Changelog
Code:
1.0 (6/29/2011)
 - Fixed name change handling
1.0 (6/29/2011)
 - Initial Release
Thanks
Thanks to the following plugins and their authors:
Free2BeKicked by asherkin
2Free2Spray by DarthNinja
basecomm by AlliedModders LLC
No Hats by Mecha The Slag
DarthNinja again for getting rid of the annoying name change limit problem
Attached Files
File Type: sp Get Plugin or Get Source (tf2_free_sanctions.sp - 176 views - 22.1 KB)
File Type: smx tf2_free_sanctions.smx (10.8 KB, 186 views)

Last edited by crazydog; 06-30-2011 at 00:26.
crazydog is offline