Team Restrict
Plugin Description:
This is a requested plugin by
Gippo in "
Team Restrict for Jailbreak". It should* work on every source game that uses jointeam command to... well join teams of course! :P
Tested with CSS and L4D.
Commands:
Restrict Team:
Code:
sm_restrictteam <#userid|name> <team number>
Restricts a team for the player. Toggle command.
Example:
Code:
sm_restrictteam "Mr. Zero" 2
That would me unable to join team 2 (CSS: terrorist, L4D: survivor).
Alternative command:
Code:
sm_rt <#userid|name> <team number>
Forced Team:
Code:
sm_forceteam <#userid|name> <team number|nothing to disable forced team>
Forces a player to join team number.
Example:
Code:
sm_forceteam "Mr. Zero" 3
Forces me to join team 3 and at the same time disallows me joining any other team (including spectators and autoassign)
Example 2:
Code:
sm_forceteam "Mr. Zero"
Disabled forced team and enables me to join teams again.
Alternative command:
Code:
sm_ft <#userid|name> <team number|nothing to disable forced team>
Notes:
List of team numbers: (For CSS and L4D)
Code:
0 - Autoassign
1 - Spectator
2 - Survivor / Terrorist
3 - Infected / Count-Terrorist
If you got any other source game that doesn't work with these team numbers, post it and I will add them.
To do:
Auto assignment still needs a bit of work.
Cvars:
A configuration file will be automaticly created for you upon first run, in /cfg/sourcemod/ called TeamRestrict.cfg
Code:
// This file was auto-generated by SourceMod (v1.2.4)
// ConVars for plugin "Team Restrict 0.90.smx"
// Required admin flag to be able to use the restrict commands
// -
// Default: "d"
sm_teamrestrict_access "d"
// The message to display when a player tries to change team but is forced to stay on the team
// -
// Default: "Sorry you have been forced to be on this team."
sm_teamrestrict_msg_forced "Sorry you have been forced to be on this team."
// The message to display when a player tries to change team but is restricted from joining that team
// -
// Default: "Sorry you have been restricted from joining that team."
sm_teamrestrict_msg_restricted "Sorry you have been restricted from joining that team."
Changelog:
Code:
Version 0.9
Released