Advertisement
iaretechnician

PoorMansNitro

Mar 2nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1.         //in variables.sqf you need to add s_player_nox = -1; just below s_player_attach_smoke = -1;
  2.         //and at the bottom of variables, add an array BOOST_CARS = ["classname","classname"];
  3.        
  4.           if ((_invehicle)&& ((typeof vehicle player in BOOST_CARS) then {
  5.             if (s_player_nox < 0 && typeof vehicle in BOOST_CARS ) then {
  6.              NOX_VEH = _vehicle;
  7.             s_player_nox = NOX_VEH addAction ["<t color='#00FF00'>BOOST!</t>", "scripts\nox.sqf"];
  8.  
  9.                    
  10.             };
  11.         }else {
  12.             if (s_player_nox >= 0) then {
  13.             NOX_VEH removeAction s_player_nox;
  14.             s_player_nox = -1;
  15.             };
  16.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement