Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2014
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. private["_vehicle","_key","_typeOfVehicle"];
  2. _vehicle = (_this select 3) select 0;
  3. _key = (_this select 3) select 1;
  4. _typeOfVehicle = typeOf _vehicle;
  5. if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_37") , "PLAIN DOWN"]; };
  6. DZE_ActionInProgress = true;
  7.  
  8. {player removeAction _x} forEach s_player_LockUnlock;s_player_LockUnlock = [];
  9.  
  10. s_player_lockUnlock_crtl = 1;
  11.  
  12. PVDZE_veh_Lock = [_vehicle,false];
  13. if(player distance _vehicle < 10) then {
  14. if (local _vehicle) then {
  15. PVDZE_veh_Lock spawn local_lockUnlock
  16. } else {
  17. publicVariable "PVDZE_veh_Lock";
  18. };
  19.  
  20. cutText [format["%1 использован чтобы открыть транспорт %2 ",_key, getText (configFile >> "CfgVehicles" >> _typeOfVehicle >> "displayName")], "PLAIN"];
  21. };
  22.  
  23. s_player_lockUnlock_crtl = -1;
  24.  
  25. DZE_ActionInProgress = false;
  26.  
  27. //ZEV lock\unlock sound ->
  28. player action ["lightOn", _vehicle];
  29. _vehicle say3D "signalka";
  30. sleep 0.3;
  31. player action ["lightOff", _vehicle];
  32. //ZEV lock\unlock sound <-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement