URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       HARD2TEAM
  HTML https://hard2team.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Source Code
       *****************************************************
       #Post#: 781--------------------------------------------------
       AntiDropShoot
       By: NiGhT_DoG Date: February 16, 2019, 8:56 am
       ---------------------------------------------------------
       using InfinityScript;
       namespace AntiDropShot
       {
       public class AntiDS : BaseScript
       {
       public AntiDS()
       {
       Log.Write(LogLevel.Info,
       "---------------------------");
       Log.Write(LogLevel.Info, "AntiDropShot Plugin
       started");
       Log.Write(LogLevel.Info,
       "---------------------------");
       }
       public override void OnPlayerDamage(Entity player,
       Entity inflictor, Entity attacker, int damage, int dFlags,
       string mod, string weapon, Vector3 point, Vector3 dir, string
       hitLoc)
       {
       if (attacker.Call<string>("getstance") == "prone")
       {
       player.Health += damage;
       attacker.Call("IprintLnBold", "^1Dropshooting is
       not allowed!");
       }
       }
       }
       }
       *****************************************************