Advertisement
infiSTAR23

DMS: Local Cleanup

Dec 8th, 2014
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. diag_log format ["DMS: Local Cleanup Compile loaded!"];
  2. _target=_this;
  3. if(typename _this=="ARRAY")then{
  4. _target=_this select 0;
  5. };
  6. if((!isNull _target) && {local _target} && {side _target != RESISTANCE}) then {
  7. {_target removeAllMPEventHandlers _x;}forEach["mpkilled","mphit","mprespawn"];
  8. {_target removeAllEventHandlers _x;}forEach["FiredNear","HandleDamage","Killed","Fired","GetOut","GetIn","Local"];
  9. diag_log["DMS: Fuck you Epoch Deleting %1:",_target];
  10. deleteVehicle _target;
  11. deleteGroup(group _target);
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement