Jump to content

Protection for vehicles near jammer


Kenobi

Recommended Posts

  • 5 weeks later...
uisleep 30;
if (isserver) then {
"UnGodVeh" addPublicVariableEventHandler {	
	private["_veh"];
	_veh = _this select 1;
	_veh allowdamage true;
};
{
	_x allowDamage false;
} foreach allvehicles;
};

if (hasinterface) then {
	while {true} do{
		waituntil {vehicle player != player};
		uisleep 1;
		UnGodVeh = vehicle player;
		uisleep 1;
		publicvariableserver "UnGodVeh";	
		waituntil {vehicle player == player};
	};
};

 

Edited by He-Man
Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...