Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.21 KB | None | 0 0
  1. _art = _this select 0;
  2. _item = _this select 1;
  3.  
  4.  
  5.  
  6.  
  7.  
  8. if(_art == "use")then
  9.  
  10. {
  11. _vcl = (nearestobjects [getpos player, ["Air", "Ship", "LandVehicle"], 6] select 0);
  12. _vclfuel = fuel _vcl;
  13. _type = typeof _vcl;
  14. if (isnil ("_vcl")) exitwith {player groupchat "Not near any vehicles"};
  15. if (!(player == vehicle player)) exitWith {player groupchat "You must be outside the vehicle"};
  16. if(_vcl iskindof _type call INV_getitemTypeKg > 2)exitwith{player groupchat "you cannot tune this vehicle"};
  17. if(_vcl iskindof "Motorcycle")exitwith{player groupchat "you cannot upgrade this!"};
  18. if(_vcl iskindof "ship")exitwith{player groupchat "you cannot upgrade boats"};
  19. _check1 = _vcl getVariable "speed1";
  20. _check2 = _vcl getVariable "speed2";
  21. _check3 = _vcl getVariable "speed3";
  22. _check4 = _vcl getVariable "speed4";
  23.  
  24. if(_item == "supgrade1") then
  25. {
  26. [_item, -1] call INV_AddInvItem;
  27. player groupchat "Tuning vehicle...";
  28. _vcl setfuel 0;
  29. _vcl lockdriver true;
  30. _vcl lockcargo true;
  31. _vcl lock true;
  32. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  33. sleep 10;
  34. _vcl lockdriver false;
  35. _vcl lockcargo false;
  36. _vcl setfuel _vclfuel;
  37. _vcl setvariable ["tuning", 1, true];
  38. _vcl setvariable ["speed1", 1, true];
  39. player groupchat "Vehicle tuned!";
  40. };
  41.  
  42. if(_item == "supgrade2") then
  43. {
  44. player groupchat "Tuning vehicle...";
  45. [_item, -1] call INV_AddInvItem;
  46. _vcl setfuel 0;
  47. _vcl lockdriver true;
  48. _vcl lockcargo true;
  49. _vcl lock true;
  50. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  51. sleep 10;
  52. _vcl lockdriver false;
  53. _vcl lockcargo false;
  54. _vcl setfuel _vclfuel;
  55. _vcl setvariable ["tuning", 2, true];
  56. _vcl setvariable ["speed2", 1, true];
  57. player groupchat "Vehicle tuned!";
  58. };
  59.  
  60. if(_item == "supgrade3") then
  61. {
  62. player groupchat "Tuning vehicle...";
  63. [_item, -1] call INV_AddInvItem;
  64. _vcl setfuel 0;
  65. _vcl lockdriver true;
  66. _vcl lockcargo true;
  67. _vcl lock true;
  68. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  69. sleep 10;
  70. _vcl lockdriver false;
  71. _vcl lockcargo false;
  72. _vcl setfuel _vclfuel;
  73. _vcl setvariable ["tuning", 3, true];
  74. _vcl setvariable ["speed3", 1, true];
  75. player groupchat "Vehicle tuned!";
  76. };
  77.  
  78.  
  79. if(_item == "supgrade4") then
  80. {
  81. player groupchat "Tuning vehicle...";
  82. [_item, -1] call INV_AddInvItem;
  83. _vcl setfuel 0;
  84. _vcl lockdriver true;
  85. _vcl lockcargo true;
  86. _vcl lock true;
  87. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  88. sleep 10;
  89. _vcl lockdriver false;
  90. _vcl lockcargo false;
  91. _vcl setfuel _vclfuel;
  92. _vcl setvariable ["tuning", 4, true];
  93. _vcl setvariable ["speed4", 1, true];
  94. player groupchat "Vehicle tuned!";
  95. };
  96.  
  97.  
  98. if(_item == "supgrade5") then
  99. {
  100. player groupchat "Tuning vehicle...";
  101. [_item, -1] call INV_AddInvItem;
  102. _vcl setfuel 0;
  103. _vcl lockdriver true;
  104. _vcl lockcargo true;
  105. _vcl lock true;
  106. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  107. sleep 10;
  108. _vcl lockdriver false;
  109. _vcl lockcargo false;
  110. _vcl setfuel _vclfuel;
  111. _vcl setvariable ["tuning", 5, true];
  112. _vcl setvariable ["speed5", 1, true];
  113. player groupchat "Vehicle tuned!";
  114. };
  115.  
  116. if(_item == "isupgrade1") then
  117. {
  118. [_item, -1] call INV_AddInvItem;
  119. player groupchat "Tuning vehicle...";
  120. _vcl setfuel 0;
  121. _vcl lockdriver true;
  122. _vcl lockcargo true;
  123. _vcl lock true;
  124. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  125. sleep 10;
  126. _vcl lockdriver false;
  127. _vcl lockcargo false;
  128. _vcl setfuel _vclfuel;
  129. _vcl setvariable ["tuning", 1, true];
  130. _vcl setvariable ["speed1", 1, true];
  131. player groupchat "Vehicle tuned!";
  132. };
  133.  
  134. if(_item == "isupgrade2") then
  135. {
  136. player groupchat "Tuning vehicle...";
  137. [_item, -1] call INV_AddInvItem;
  138. _vcl setfuel 0;
  139. _vcl lockdriver true;
  140. _vcl lockcargo true;
  141. _vcl lock true;
  142. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  143. sleep 10;
  144. _vcl lockdriver false;
  145. _vcl lockcargo false;
  146. _vcl setfuel _vclfuel;
  147. _vcl setvariable ["tuning", 2, true];
  148. _vcl setvariable ["speed2", 1, true];
  149. player groupchat "Vehicle tuned!";
  150. };
  151.  
  152. if(_item == "isupgrade3") then
  153. {
  154. player groupchat "Tuning vehicle...";
  155. [_item, -1] call INV_AddInvItem;
  156. _vcl setfuel 0;
  157. _vcl lockdriver true;
  158. _vcl lockcargo true;
  159. _vcl lock true;
  160. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  161. sleep 10;
  162. _vcl lockdriver false;
  163. _vcl lockcargo false;
  164. _vcl setfuel _vclfuel;
  165. _vcl setvariable ["tuning", 3, true];
  166. _vcl setvariable ["speed3", 1, true];
  167. player groupchat "Vehicle tuned!";
  168. };
  169.  
  170. if(_item == "isupgrade4") then
  171. {
  172. player groupchat "Tuning vehicle...";
  173. [_item, -1] call INV_AddInvItem;
  174. _vcl setfuel 0;
  175. _vcl lockdriver true;
  176. _vcl lockcargo true;
  177. _vcl lock true;
  178. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  179. sleep 10;
  180. _vcl lockdriver false;
  181. _vcl lockcargo false;
  182. _vcl setfuel _vclfuel;
  183. _vcl setvariable ["tuning", 4, true];
  184. _vcl setvariable ["speed4", 1, true];
  185. player groupchat "Vehicle tuned!";
  186. };
  187.  
  188.  
  189. if(_item == "isupgrade5") then
  190. {
  191. player groupchat "Tuning vehicle...";
  192. [_item, -1] call INV_AddInvItem;
  193. _vcl setfuel 0;
  194. _vcl lockdriver true;
  195. _vcl lockcargo true;
  196. _vcl lock true;
  197. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  198. sleep 10;
  199. _vcl lockdriver false;
  200. _vcl lockcargo false;
  201. _vcl setfuel _vclfuel;
  202. _vcl setvariable ["tuning", 5, true];
  203. _vcl setvariable ["speed5", 1, true];
  204. player groupchat "Vehicle tuned!";
  205. };
  206.  
  207. if(_item == "esusupgrade1") then
  208. {
  209. [_item, -1] call INV_AddInvItem;
  210. player groupchat "Tuning vehicle...";
  211. _vcl setfuel 0;
  212. _vcl lockdriver true;
  213. _vcl lockcargo true;
  214. _vcl lock true;
  215. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  216. sleep 10;
  217. _vcl lockdriver false;
  218. _vcl lockcargo false;
  219. _vcl setfuel _vclfuel;
  220. _vcl setvariable ["tuning", 1, true];
  221. _vcl setvariable ["speed1", 1, true];
  222. player groupchat "Vehicle tuned!";
  223. };
  224.  
  225. if(_item == "esusupgrade2") then
  226. {
  227. player groupchat "Tuning vehicle...";
  228. [_item, -1] call INV_AddInvItem;
  229. _vcl setfuel 0;
  230. _vcl lockdriver true;
  231. _vcl lockcargo true;
  232. _vcl lock true;
  233. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  234. sleep 10;
  235. _vcl lockdriver false;
  236. _vcl lockcargo false;
  237. _vcl setfuel _vclfuel;
  238. _vcl setvariable ["tuning", 2, true];
  239. _vcl setvariable ["speed2", 1, true];
  240. player groupchat "Vehicle tuned!";
  241. };
  242.  
  243. if(_item == "esusupgrade3") then
  244. {
  245. player groupchat "Tuning vehicle...";
  246. [_item, -1] call INV_AddInvItem;
  247. _vcl setfuel 0;
  248. _vcl lockdriver true;
  249. _vcl lockcargo true;
  250. _vcl lock true;
  251. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  252. sleep 10;
  253. _vcl lockdriver false;
  254. _vcl lockcargo false;
  255. _vcl setfuel _vclfuel;
  256. _vcl setvariable ["tuning", 3, true];
  257. _vcl setvariable ["speed3", 1, true];
  258. player groupchat "Vehicle tuned!";
  259. };
  260.  
  261. if(_item == "cvip_supgrade1") then
  262. {
  263. [_item, -1] call INV_AddInvItem;
  264. player groupchat "Tuning vehicle...";
  265. _vcl setfuel 0;
  266. _vcl lockdriver true;
  267. _vcl lockcargo true;
  268. _vcl lock true;
  269. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  270. sleep 10;
  271. _vcl lockdriver false;
  272. _vcl lockcargo false;
  273. _vcl setfuel _vclfuel;
  274. _vcl setvariable ["tuning", 1, true];
  275. _vcl setvariable ["speed1", 1, true];
  276. player groupchat "Vehicle tuned!";
  277. };
  278.  
  279. if(_item == "cvip_supgrade2") then
  280. {
  281. player groupchat "Tuning vehicle...";
  282. [_item, -1] call INV_AddInvItem;
  283. _vcl setfuel 0;
  284. _vcl lockdriver true;
  285. _vcl lockcargo true;
  286. _vcl lock true;
  287. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  288. sleep 10;
  289. _vcl lockdriver false;
  290. _vcl lockcargo false;
  291. _vcl setfuel _vclfuel;
  292. _vcl setvariable ["tuning", 2, true];
  293. _vcl setvariable ["speed2", 1, true];
  294. player groupchat "Vehicle tuned!";
  295. };
  296.  
  297. if(_item == "cvip_supgrade3") then
  298. {
  299. player groupchat "Tuning vehicle...";
  300. [_item, -1] call INV_AddInvItem;
  301. _vcl setfuel 0;
  302. _vcl lockdriver true;
  303. _vcl lockcargo true;
  304. _vcl lock true;
  305. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  306. sleep 10;
  307. _vcl lockdriver false;
  308. _vcl lockcargo false;
  309. _vcl setfuel _vclfuel;
  310. _vcl setvariable ["tuning", 3, true];
  311. _vcl setvariable ["speed3", 1, true];
  312. player groupchat "Vehicle tuned!";
  313. };
  314.  
  315. if(_item == "cvip_supgrade4") then
  316. {
  317. player groupchat "Tuning vehicle...";
  318. [_item, -1] call INV_AddInvItem;
  319. _vcl setfuel 0;
  320. _vcl lockdriver true;
  321. _vcl lockcargo true;
  322. _vcl lock true;
  323. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  324. sleep 10;
  325. _vcl lockdriver false;
  326. _vcl lockcargo false;
  327. _vcl setfuel _vclfuel;
  328. _vcl setvariable ["tuning", 4, true];
  329. _vcl setvariable ["speed4", 1, true];
  330. player groupchat "Vehicle tuned!";
  331. };
  332.  
  333.  
  334. if(_item == "cvip_supgrade5") then
  335. {
  336. player groupchat "Tuning vehicle...";
  337. [_item, -1] call INV_AddInvItem;
  338. _vcl setfuel 0;
  339. _vcl lockdriver true;
  340. _vcl lockcargo true;
  341. _vcl lock true;
  342. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  343. sleep 10;
  344. _vcl lockdriver false;
  345. _vcl lockcargo false;
  346. _vcl setfuel _vclfuel;
  347. _vcl setvariable ["tuning", 5, true];
  348. _vcl setvariable ["speed5", 1, true];
  349. player groupchat "Vehicle tuned!";
  350. };
  351.  
  352. if(_item == "don_supgrade1") then
  353. {
  354. [_item, -1] call INV_AddInvItem;
  355. player groupchat "Tuning vehicle...";
  356. _vcl setfuel 0;
  357. _vcl lockdriver true;
  358. _vcl lockcargo true;
  359. _vcl lock true;
  360. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  361. sleep 10;
  362. _vcl lockdriver false;
  363. _vcl lockcargo false;
  364. _vcl setfuel _vclfuel;
  365. _vcl setvariable ["tuning", 1, true];
  366. _vcl setvariable ["speed1", 1, true];
  367. player groupchat "Vehicle tuned!";
  368. };
  369.  
  370. if(_item == "don_supgrade2") then
  371. {
  372. player groupchat "Tuning vehicle...";
  373. [_item, -1] call INV_AddInvItem;
  374. _vcl setfuel 0;
  375. _vcl lockdriver true;
  376. _vcl lockcargo true;
  377. _vcl lock true;
  378. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  379. sleep 10;
  380. _vcl lockdriver false;
  381. _vcl lockcargo false;
  382. _vcl setfuel _vclfuel;
  383. _vcl setvariable ["tuning", 2, true];
  384. _vcl setvariable ["speed2", 1, true];
  385. player groupchat "Vehicle tuned!";
  386. };
  387.  
  388. if(_item == "don_supgrade3") then
  389. {
  390. player groupchat "Tuning vehicle...";
  391. [_item, -1] call INV_AddInvItem;
  392. _vcl setfuel 0;
  393. _vcl lockdriver true;
  394. _vcl lockcargo true;
  395. _vcl lock true;
  396. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  397. sleep 10;
  398. _vcl lockdriver false;
  399. _vcl lockcargo false;
  400. _vcl setfuel _vclfuel;
  401. _vcl setvariable ["tuning", 3, true];
  402. _vcl setvariable ["speed3", 1, true];
  403. player groupchat "Vehicle tuned!";
  404. };
  405.  
  406. if(_item == "don_supgrade4") then
  407. {
  408. player groupchat "Tuning vehicle...";
  409. [_item, -1] call INV_AddInvItem;
  410. _vcl setfuel 0;
  411. _vcl lockdriver true;
  412. _vcl lockcargo true;
  413. _vcl lock true;
  414. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  415. sleep 10;
  416. _vcl lockdriver false;
  417. _vcl lockcargo false;
  418. _vcl setfuel _vclfuel;
  419. _vcl setvariable ["tuning", 4, true];
  420. _vcl setvariable ["speed4", 1, true];
  421. player groupchat "Vehicle tuned!";
  422. };
  423.  
  424.  
  425. if(_item == "don_supgrade5") then
  426. {
  427. player groupchat "Tuning vehicle...";
  428. [_item, -1] call INV_AddInvItem;
  429. _vcl setfuel 0;
  430. _vcl lockdriver true;
  431. _vcl lockcargo true;
  432. _vcl lock true;
  433. player playMove "AinvPknlMstpSlayWrflDnon_medic";
  434. sleep 10;
  435. _vcl lockdriver false;
  436. _vcl lockcargo false;
  437. _vcl setfuel _vclfuel;
  438. _vcl setvariable ["tuning", 5, true];
  439. _vcl setvariable ["speed5", 1, true];
  440. player groupchat "Vehicle tuned!";
  441. };
  442.  
  443. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement