//Anti Spawn Kill And Team Kill Punishment For Ultimate Team Deathmatch - By Stapo unit = _this select 0; killer = _this select 1; side_victim = player getvariable "unitside" SKmessage = { titleText ["SPAWN KILLING IS NOT ALLOWED!", "BLACK IN",8]; killer setDamage 1; }; TKmessage = { titleText ["TEAM KILLING IS NOT ALLOWED!", "BLACK IN",8]; killer setDamage 1; }; if (killer == unit) exitWith {}; if (side_victim == side killer) then { [[],"TKmessage",killer,true,true] spawn BIS_fnc_MP; }; if (side_victim == blufor) then { if (unit distance getMarkerPos "Respawn_west" < 100) || (unit distance getMarkerPos "Respawn_west_1" < 50) || (unit distance getMarkerPos "Respawn_west_2" < 75) then { [[],"SKmessage",killer,true,true] spawn BIS_fnc_MP; }; } else { if (unit distance getMarkerPos "Respawn_east" < 100) || (unit distance getMarkerPos "Respawn_east_1" < 75) || (unit distance getMarkerPos "Respawn_east_2" < 50) then { [[],"SKmessage",killer,true,true] spawn BIS_fnc_MP; }; };