Advertisement
bejiitas_wrath

Delete player body after disconnect.

Jan 17th, 2021
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. handleDisconnect = {
  2.         _unit = _this select 0;
  3.         _containers = nearestObjects[_unit,["WeaponHolderSimulated"],8];
  4.         {
  5.             deleteVehicle _x;
  6.         } foreach _containers;
  7.         deleteVehicle _unit;
  8. };
  9.  
  10. addMissionEventHandler ["HandleDisconnect",{
  11.     _this call handleDisconnect;
  12.     false
  13. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement