Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. /*
  2. Author: Maxence Lyon
  3. Altis DEV: https://altisdev.com/user/maxence-lyon
  4. Teamspeak 3: ts.the-programmer.com
  5. Web site: www.the-programmer.com
  6. Steam: « Une Vache Sur CS – Maxence », please leave a message on my profile who says the exact reason before adding me.
  7.  
  8. Terms of use:
  9. - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
  10. - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
  11. - Out of respect for the author please do not delete this information.
  12.  
  13. License number:
  14. Server's name:
  15. Owner's name:
  16. */
  17. _unit = param [0,objNull,[objNull]];
  18. _vehicle = param [1,objNull,[objNull]];
  19. _price = param [2,0,[0]];
  20.  
  21. _uid = getPlayerUID _unit;
  22. _name = name _unit;
  23.  
  24. life_atmbank = life_atmbank + _price;
  25. [1] call SOCK_fnc_updatePartial;
  26. life_houses = life_houses - [_houses];
  27.  
  28. _vehicle setVariable ["vehicle_info_owners",[[_uid,_name]],true];
  29. _vInfo = _houses getVariable ["dbInfo",[]];
  30. _vehicle setVariable ["dbInfo",[_uid,(_vInfo select 1)],true];
  31.  
  32. [_vehicle,_vInfo] remoteExecCall ["max_giveVeh_fnc_giveVehicle",2];
  33. hint format [(["STR_SUCCES_GIVE_VEHICLE","Max_Settings_GiveVehicle","GiveVehicle_Localization"] call theprogrammer_core_fnc_localize),typeOf _vehicle,_name];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement