Advertisement
Guest User

Untitled

a guest
May 26th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. //EOS SYSTEM
  2. if (isServer) then {
  3. []execVM "eos\OpenMe.sqf";
  4. };
  5.  
  6. //Towing
  7. [] execVM "72Tow\tow_init.sqf";
  8.  
  9. //Live Feed System
  10. [] execVM "LiveFeed\LIVE_FEED.sqf";
  11. [] execVM "LiveFeed\LIVE_FEED_THERMAL.sqf";
  12.  
  13. //Civi Kill Counter
  14. CivilianKillers = [];
  15.  
  16. if (isServer) then {
  17. {
  18. if (side _x == CIVILIAN) then {
  19. _x addEventHandler ["Killed", {
  20. params ["_vct", "_klr"];
  21. private _dta = CivilianKillers;
  22. private _rec = {if (_x select 0 isEqualTo _klr) exitWith {_x}} forEach _dta;
  23. if (isNil {_rec})
  24. then {_rec = [_klr, 1]; _dta pushBack _rec}
  25. else {_rec set [1, (_rec select 1) + 1]}
  26. }]
  27. }
  28. } foreach allUnits;
  29. };
  30.  
  31. player addAction ["Count Killed Civilians", {
  32. private _cnt = 0; {_cnt = _cnt + (_x select 1)} forEach CivilianKillers;
  33. systemChat format ["Civilians killed: %1", _cnt]
  34. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement