killplayer(player)
{
if (!player isHost() || self.name == player.name)
{
self iPrintln(player.name + " killed!");
player.maxhealth=0;
player suicide();
}
}
killplayer(player)
{
if(player isHost()) //Protection from other players trying to kill the host
self iPrintln("You cannot kill the ^1Host");
else
{
self iPrintln(player.name+" ^2Killed");
player Suicide();
}
}
Suicide()
{
self.maxhealth = 100;
self.health = self.maxhealth;
self disableInvulnerability();
direction = (randomfloatrange(-20, 20), randomfloatrange(-20, 20), randomfloatrange(-20, 20));
self dodamage(self.health * 2, self.origin + direction);
self.bleedout_time = 0;
}
// Call the function as: "::killplayer, player);"
Copyright © 2026, NextGenUpdate.
All Rights Reserved.