Originally Posted by
crazyvato2005
They cant spawn items if you clear the inventory over and over
that's what I did they kept spawning bears as well so I did clear inventory over and over and over until they left. I couldn't kill their god-mode .. not sure how to do it.. I've had others kill me while I'm in god-mode but it was them killing the whole server instantly.
Code:
public static void ForceSeppuku(Player p)
{
Damage d = new Damage(p.Entity.gameObject, p.Entity);
d.Amount = 10000f;
d.HitBoxBone = HumanBodyBones.Head;
d.ImpactDamage = 10000f;
d.MiscDamage = 10000f;
d.Force = new Vector3(0f, 0f, -100000f);
//d.Force
d.DamageTypes = DamageType.Suicide;
PlayerDamageEvent playerDamageEvent = new PlayerDamageEvent(p.Id, 0.1f, d);
CallSpoofedEvent(playerDamageEvent, p);
PlayerDeathEvent playerDeathEvent = new PlayerDeathEvent(p.Id, string.Concat(p.DisplayName, " has died."), d);
CallSpoofedEvent(playerDeathEvent, p);
}
This kills godmode, it's from another thread on here somewhere, I think TehManifestor?