Home » cs2_teleportprotection – A CSSharp plugin to protect players

cs2_teleportprotection – A CSSharp plugin to protect players

Download / Go to latest repository

Teleport Protection Plugin

Config

RoundStartDelay = 5.0f
To disable teleport protection for X seconds after round start. 0 for instant protection.

ProtectionTime = 1.0f
Protection time for players after they hit trigger_teleport. Anything less than or equal to 0 will automatically set it back to 1.0.

RemoveProtectionOnWeaponFire = true
Instantly removes protection when player fires his weapon.

TeleportProtectionMessage = [{{lightred}}SpawnProtection{{default}}] You are protected for {{green}}{{Delay}}{{default}} second(s)!
Message printed for player when player hits trigger_teleport, {Delay} is the ProtectionTime. Blank for no message.

TeleportProtectionRemoveMessage = [{{lightred}}SpawnProtection{{default}}] You are no longer {{green}}protected{{default}} from any damage!
Message printed for player when protection has ended. Blank for no message.

Chat colors supported:

{DEFAULT}
{WHITE}
{DARKRED}
{GREEN}
{LIGHTYELLOW}
{LIGHTBLUE}
{OLIVE}
{LIME}
{RED}
{PURPLE}
{GRAY}
{GREY}
{YELLOW}
{GOLD}
{SILVER}
{BLUE}
{DARKBLUE}
{BLUEGREY}
{MAGENTA}
{LIGHTRED}

:warning: Minimum CSSharp version needed: 111

Tested only in linux server.

Credits:
Ported over from @luis-rei97 ‘s sourcemod plugin.

Download / Go to latest repository

Leave a Reply

Your email address will not be published. Required fields are marked *