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...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...