View Single Post
Author Message
chromatikmoniker
Junior Member
Join Date: Apr 2024
Old 05-01-2024 , 22:11   [ANY] Target Set Team
Reply With Quote #1

A plugin for Setting a Client's Team, this was mainly made so admins can either force bots onto a specific team or choose a team for someone.

In this plugin you can only specify all the way up to TeamNum 5 which is the max for Open Fortress and might be about the same for Team Fortress 2 Classic.

This is another command invoking plugin that uses ent_fire as the base to set a target's team which means sv_cheats must be enabled and that person must have the rights to use ent_fire in the first place.

Some of the code was largely based off of the plugin cexec, which i had originally made this idea into a small plugin that when combined with cexec would allow the admin to change the team of a client, but now you can do it all in one here!

Cvars:
sm_setteam <CLIENT> <TEAMNUMBER>
Attached Files
File Type: smx Setteam.smx (4.7 KB, 23 views)
File Type: sp Get Plugin or Get Source (Setteam.sp - 51 views - 1.9 KB)
chromatikmoniker is offline