Protection Teams

by wowm0d

Adds joinable protection teams for combine to join from the tab menu.


The Protection Team menu automatically updates whenever a PT action occurs. ex: PT Creation, PT Joined, etc… It is possible to modify the plugin to suit your schema, however by default it works OOTB with HL2 RP.

There are client & server hooks ran after any PT action:

  • PLUGIN:OnCreateTeam(client, index)
  • PLUGIN:OnReassignTeam(index, newIndex)
  • PLUGIN:OnSetTeamOwner(client, index)
  • PLUGIN:OnDeleteTeam(index)
  • PLUGIN:OnJoinTeam(client, index)
  • PLUGIN:OnLeaveTeam(client, index)

There are also player variables set on client & server:

  • LocalPlayer().curTeam & client.curTeam – team index
  • LocalPlayer().isTeamOwner & client.isTeamOwner – bool

Preview

Menu

If you like this plugin and want to see more consider getting me a coffee. https://ko-fi.com/wowm0d

Support for this plugin can be found here: https://discord.gg/mntpDMU

Players can use these commands to interact with this plugin

/PTCreate

Create a Protection Team.

/PTJoin

Join a Protection Team.

/PTKick

Kick a PT member.

/PTLead

Promote a PT member to PT lead or assume the lead position.

/PTLeave

Leave your Protection Team.

/PTReassign

Reassign PT number index.

Copyright 2020 wowm0d
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.