Advertisement
DarkBall

Untitled

May 22nd, 2020
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.40 KB | None | 0 0
  1. span class="re5"> playerKills = 0;
  2. {
  3.     if (side _x == RESISTANCE) then {
  4.         _x addEventHandler ['Killed',{
  5.             private _killer = _this select 1;
  6.              if (isPlayer _killer) then {
  7.                 playerKills = playerKills + 1;
  8.                  if (playerKills >= 2) exitWith {
  9.                     playerTraitor = true;
  10.                  };
  11.              };
  12.         }];
  13.     };
  14. }forEach allUnits;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement