Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. // Process Action
  2. /* Funktion: _null = [2,"diamond",life_inv_diamondUncut] spawn life_fnc_AddActionToScript; */
  3. case 2:
  4. {
  5. _vendorName = (_this select 1);
  6. _processType = (_this select 2);
  7. _processItem = (_this select 3);
  8. if(!isNil "_vendorName" && !isNil "_processType" && !isNil "_processItem") then
  9. {
  10. if(_processItem > 0) then
  11. {
  12. if(!life_is_processing) then
  13. {
  14. [_vendorName,_processType] spawn life_fnc_processAction
  15. } else {
  16. hint "Du bist schon am Vearbeiten."
  17. };
  18.  
  19. } else {
  20. hint "Du hast nicht genug dabei zum Verarbeiten!"
  21. };
  22. };
  23. };
  24.  
  25. // Lizenzen
  26. /* Funktion: _null = [3,"driver",license_civ_driver] spawn life_fnc_AddActionToScript; */
  27. case 3:
  28. {
  29. _lizenzBuyName = (_this select 1);
  30. _hatLizenz = (_this select 2);
  31. if(!isNil "_lizenzBuyName" && !isNil "_hatLizenz") then
  32. {
  33. if(!_hatLizenz) then
  34. {
  35. [_lizenzBuyName] spawn life_fnc_buyLicense;
  36. } else {
  37. hint "Du hast die Lizenz schon!"
  38. };
  39. };
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement