Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Carbomb
- if ((_invehicle)&& ((typeof vehicle player == "Lada2_TK_CIV_EP1") || (typeof vehicle == "sheli")) then {
- if (s_player_attach_bomb < 0 && typeof vehicle == "Lada2_TK_CIV_EP1" ) then {
- CARBOMB_VEH = _vehicle;
- s_player_attach_bomb = CARBOMB_VEH addAction ["<t color='#FF0000'>DETONATE!</t>", "scripts\detonate.sqf"];
- s_player_attach_smoke = CARBOMB_VEH addAction ["<t color='#0000AA'>SMOKESCREEN!</t>", "scripts\smokescreen.sqf"];
- };
- }else {
- if (s_player_attach_bomb >= 0) then {
- CARBOMB_VEH removeAction s_player_attach_bomb;
- CARBOMB_VEH removeAction s_player_attach_smoke;
- s_player_attach_bomb = -1;
- s_player_attach_smoke = -1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement