SHOW:
|
|
- or go back to the newest paste.
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 { |
4 | + | if ((_invehicle)&& (typeof vehicle player == "BAF_Offroad_W")) then { |
5 | - | if (s_player_nox < 0 && typeof vehicle in BOOST_CARS ) then { |
5 | + | if (s_player_nox < 0 && typeof vehicle == "BAF_Offroad_W" ) 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 | }; |