Guest User

bike3

a guest
Sep 10th, 2013
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if !("PartGeneric" in magazines player && "PartEngine" in magazines player) exitWith {cutText [format["You need Scrap Metal and Engine part to upgrade your Bike"], "PLAIN DOWN"];};
  2. if (dayz_combat == 1) then {
  3. cutText [format["You are in Combat and cannot build a bike."], "PLAIN DOWN"];
  4. } else {
  5. player removeAction s_player_deploybike;
  6. player playActionNow "Medic";
  7. r_interrupt = false;
  8. player removeMagazine "PartGeneric";
  9. player removeMagazine "PartEngine";
  10. deletevehicle cursortarget;
  11. _dis=10;
  12. _sfx = "repair";
  13. [player,_sfx,0,false,_dis] call dayz_zombieSpeak;
  14. [player,_dis,true,(getPosATL player)] spawn player_alertZombies;
  15.  
  16. sleep 6;
  17.  
  18. _object = "TT650_Civ" createVehicle (position player);
  19. _object setVariable ["ObjectID", "1", true];
  20. _object setVariable ["ObjectUID", "1", true];
  21.  
  22. _object attachto [player,[0.0,3.0,2.5]];
  23. _object setfuel 0.5;
  24. sleep 3;
  25. detach _object;
  26. player reveal _object;
  27.  
  28. cutText [format["You've converted your bike into a motorcycle."], "PLAIN DOWN"];
  29.  
  30. r_interrupt = false;
  31. player switchMove "";
  32. player playActionNow "stop";
  33.  
  34. sleep 10;
  35.  
  36. cutText [format["Warning: Spawned Motorcycles DO NOT SAVE after server restart!"], "PLAIN DOWN"];
  37.  
  38. };
RAW Paste Data