Respecting immunity and css_team command

This commit is contained in:
daffyyyy
2023-12-06 01:55:30 +01:00
parent dcc85b21c3
commit fdbf1b1a5c
5 changed files with 148 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Modules.Admin;
using CounterStrikeSharp.API.Modules.Utils;
namespace CS2_SimpleAdmin;
@@ -10,6 +11,11 @@ public static class PlayerUtils
PerformSlap(pawn, damage);
}
public static bool CanTarget(this CCSPlayerController controller, CCSPlayerController target)
{
return AdminManager.CanPlayerTarget(controller, target);
}
public static void Bury(this CBasePlayerPawn pawn, float depth = 10f)
{
var newPos = new Vector(pawn.AbsOrigin!.X, pawn.AbsOrigin.Y,