Advertisement
Skaronator

Untitled

Mar 3rd, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.90 KB | None | 0 0
  1. if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then {
  2.     if (s_player_repair_crtl < 0) then {
  3.         dayz_myCursorTarget = _cursorTarget;
  4.         _menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
  5.         if(!locked _cursorTarget) then {
  6.             _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
  7.             s_player_repairActions set [count s_player_repairActions,_menu1];
  8.         };
  9.         s_player_repairActions set [count s_player_repairActions,_menu];
  10.         s_player_repair_crtl = 1;
  11.     };
  12. } else {
  13.         {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
  14.         s_player_repair_crtl = -1;
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement