Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. _license = _this select 0;
  2. _status = _this select 1;
  3. _object = _this select 2;
  4. _player = _this select 3;
  5.  
  6. _information = _object getVariable "information";
  7.  
  8. if (isNil "_information") exitwith {
  9. deletevehicle _object;
  10. };
  11.  
  12. _exit = false;
  13. if (_status == 0) then {
  14. _license = _information select 0;
  15. _carowner = _information select 8;
  16. if (isNil "_carowner") exitwith {_exit = true;};
  17. {if (getplayeruid _x == _carowner) exitwith { _player = _x; }; } foreach playableunits;
  18. deletevehicle _object;
  19. };
  20. if (_exit) exitwith { deletevehicle _object; };
  21. _updatestr = format["updateCarStatus:%1:%2", _status, _license];
  22. _update = [0, _updatestr] call ExternalS_fnc_ExtDBquery;
  23.  
  24.  
  25. if (_status == 0) then {
  26. _information SET[7, 0];
  27. ["garage", _information] remoteExec["client_fnc_setVariable", _player];
  28. deletevehicle _object;
  29. } else {
  30. _information SET[7, 1];
  31. _currentCars = _player getvariable "usedgarage";
  32. _currentCars pushback _information;
  33. _player setvariable["usedgarage", _currentCars, false];
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement