Guest User

Untitled

a guest
Mar 11th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.61 KB | None | 0 0
  1. #define BODY_PART_TORSO 3
  2. #define BODY_PART_GROIN 4
  3. #define BODY_PART_LEFT_ARM 5
  4. #define BODY_PART_RIGHT_ARM 6
  5. #define BODY_PART_LEFT_LEG 7
  6. #define BODY_PART_RIGHT_LEG 8
  7. #define BODY_PART_HEAD 9
  8.  
  9. my_SetPlayerArmour(playerid, Float:amount)
  10. {
  11. if(amount < 0.0)
  12. {
  13. amount = 0.0;
  14. }
  15.  
  16. return SetPlayerArmour(playerid, amount);
  17. }
  18.  
  19. #if defined _ALS_SetPlayerArmour
  20. #undef SetPlayerArmour
  21. #else
  22. #define _ALS_SetPlayerArmour
  23. #endif
  24. #define SetPlayerArmour my_SetPlayerArmour
  25.  
  26.  
  27.  
  28. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
  29. {
  30. new Float: health,Float: armour;
  31.  
  32. GetPlayerHealth(playerid, health);
  33. GetPlayerArmour(playerid, armour);
  34.  
  35. switch(weaponid)
  36. {
  37. case 0: // Unarmed
  38. {
  39. switch(armour)
  40. {
  41. case 0:
  42. {
  43. SetPlayerHealth(playerid, health - 5);
  44. }
  45. default:
  46. {
  47. SetPlayerHealth(playerid, health - 3);
  48. }
  49. }
  50. }
  51. case 1: // Brass Knuckles
  52. {
  53. switch(armour)
  54. {
  55. case 0:
  56. {
  57. SetPlayerHealth(playerid, health - 10);
  58. }
  59. default:
  60. {
  61. SetPlayerHealth(playerid, health - 7);
  62. }
  63. }
  64. }
  65. case 2: // Golf Club
  66. {
  67. switch(armour)
  68. {
  69. case 0:
  70. {
  71. SetPlayerHealth(playerid, health - 12);
  72. }
  73. default:
  74. {
  75. SetPlayerHealth(playerid, health - 8);
  76. }
  77. }
  78. }
  79. case 3: // Nitestick
  80. {
  81. switch(armour)
  82. {
  83. case 0:
  84. {
  85. SetPlayerHealth(playerid, health - 18);
  86. }
  87. default:
  88. {
  89. SetPlayerHealth(playerid, health - 12);
  90. }
  91. }
  92. }
  93. case 4: // Knife
  94. {
  95. switch(armour)
  96. {
  97. case 0:
  98. {
  99. SetPlayerHealth(playerid, health - 20);
  100. }
  101. default:
  102. {
  103. SetPlayerHealth(playerid, health - 13);
  104. }
  105. }
  106. }
  107. case 5: // Bat
  108. {
  109. switch(armour)
  110. {
  111. case 0:
  112. {
  113. SetPlayerHealth(playerid, health - 18);
  114. }
  115. default:
  116. {
  117. SetPlayerHealth(playerid, health - 12);
  118. }
  119. }
  120. }
  121. case 6: // Shovel
  122. {
  123. switch(armour)
  124. {
  125. case 0:
  126. {
  127. SetPlayerHealth(playerid, health - 12);
  128. }
  129. default:
  130. {
  131. SetPlayerHealth(playerid, health - 9);
  132. }
  133. }
  134. }
  135. case 7: // Poolstick
  136. {
  137. switch(armour)
  138. {
  139. case 0:
  140. {
  141. SetPlayerHealth(playerid, health - 12);
  142. }
  143. default:
  144. {
  145. SetPlayerHealth(playerid, health - 9);
  146. }
  147. }
  148. }
  149. case 8: // Katana
  150. {
  151. switch(armour)
  152. {
  153. case 0:
  154. {
  155. SetPlayerHealth(playerid, health - 30);
  156. }
  157. default:
  158. {
  159. SetPlayerHealth(playerid, health - 15);
  160. }
  161. }
  162. }
  163. case 9: // chainsaw
  164. {
  165. switch(armour)
  166. {
  167. case 0:
  168. {
  169. SetPlayerHealth(playerid, health - 1);
  170. }
  171. default:
  172. {
  173. SetPlayerHealth(playerid, health - 1);
  174. }
  175. }
  176. }
  177. case 10: // Dildo
  178. {
  179. switch(armour)
  180. {
  181. case 0:
  182. {
  183. SetPlayerHealth(playerid, health - 5);
  184. }
  185. default:
  186. {
  187. SetPlayerArmour(playerid, armour - 5);
  188. }
  189. }
  190. }
  191. case 11: // Dildo
  192. {
  193. switch(armour)
  194. {
  195. case 0:
  196. {
  197. SetPlayerHealth(playerid, health - 5);
  198. }
  199. default:
  200. {
  201. SetPlayerArmour(playerid, armour - 5);
  202. }
  203. }
  204. }
  205. case 12: // Dildo
  206. {
  207. switch(armour)
  208. {
  209. case 0:
  210. {
  211. SetPlayerHealth(playerid, health - 5);
  212. }
  213. default:
  214. {
  215. SetPlayerArmour(playerid, armour - 5);
  216. }
  217. }
  218. }
  219. case 13: // Dildo
  220. {
  221. switch(armour)
  222. {
  223. case 0:
  224. {
  225. SetPlayerHealth(playerid, health - 5);
  226. }
  227. default:
  228. {
  229. SetPlayerArmour(playerid, armour - 5);
  230. }
  231. }
  232. }
  233. case 14: // Flowers
  234. {
  235. switch(armour)
  236. {
  237. case 0:
  238. {
  239. SetPlayerHealth(playerid, health - 5);
  240. }
  241. default:
  242. {
  243. SetPlayerArmour(playerid, armour - 5);
  244. }
  245. }
  246. }
  247. case 15: // Cane
  248. {
  249. switch(armour)
  250. {
  251. case 0:
  252. {
  253. SetPlayerHealth(playerid, health - 12);
  254. }
  255. default:
  256. {
  257. SetPlayerArmour(playerid, armour - 12);
  258. }
  259. }
  260. }
  261. case 22: // Colt 45
  262. {
  263. switch(armour)
  264. {
  265. case 0:
  266. {
  267. switch(bodypart)
  268. {
  269. case 3: SetPlayerHealth(playerid, health - 12); // Torso
  270. case 4: SetPlayerHealth(playerid, health - 11); // Groin
  271. case 5: SetPlayerHealth(playerid, health - 6); // Left Arm
  272. case 6: SetPlayerHealth(playerid, health - 6); // Right Arm
  273. case 7: SetPlayerHealth(playerid, health - 6); // Left Leg
  274. case 8: SetPlayerHealth(playerid, health - 6); // Right Leg
  275. case 9: SetPlayerHealth(playerid, health - 15); // Head
  276. }
  277. }
  278. default:
  279. {
  280. switch(bodypart)
  281. {
  282. case 3: SetPlayerArmour(playerid, armour - 6); // Torso
  283. case 4: SetPlayerArmour(playerid, armour - 5); // Groin
  284. case 5: SetPlayerArmour(playerid, armour - 3); // Left Arm
  285. case 6: SetPlayerArmour(playerid, armour - 3); // Right Arm
  286. case 7: SetPlayerArmour(playerid, armour - 3); // Left Leg
  287. case 8: SetPlayerArmour(playerid, armour - 3); // Right Leg
  288. case 9: SetPlayerArmour(playerid, armour - 8); // Head
  289. }
  290. }
  291. }
  292. }
  293. case 23: // SD Pistol
  294. {
  295. switch(armour)
  296. {
  297. case 0:
  298. {
  299. switch(bodypart)
  300. {
  301. case 3: SetPlayerHealth(playerid, health - 18); // Torso
  302. case 4: SetPlayerHealth(playerid, health - 16); // Groin
  303. case 5: SetPlayerHealth(playerid, health - 10); // Left Arm
  304. case 6: SetPlayerHealth(playerid, health - 10); // Right Arm
  305. case 7: SetPlayerHealth(playerid, health - 10); // Left Leg
  306. case 8: SetPlayerHealth(playerid, health - 10); // Right Leg
  307. case 9: SetPlayerHealth(playerid, health - 20); // Head
  308. }
  309. }
  310. default:
  311. {
  312. switch(bodypart)
  313. {
  314. case 3: SetPlayerArmour(playerid, armour - 12); // Torso
  315. case 4: SetPlayerArmour(playerid, armour - 11); // Groin
  316. case 5: SetPlayerArmour(playerid, armour - 6); // Left Arm
  317. case 6: SetPlayerArmour(playerid, armour - 6); // Right Arm
  318. case 7: SetPlayerArmour(playerid, armour - 6); // Left Leg
  319. case 8: SetPlayerArmour(playerid, armour - 6); // Right Leg
  320. case 9: SetPlayerArmour(playerid, armour - 15); // Head
  321. }
  322. }
  323. }
  324. }
  325. case 24: // Desert Eagle
  326. {
  327. switch(armour)
  328. {
  329. case 0:
  330. {
  331. switch(bodypart)
  332. {
  333. case 3: SetPlayerHealth(playerid, health - 40); // Torso
  334. case 4: SetPlayerHealth(playerid, health - 18); // Groin
  335. case 5: SetPlayerHealth(playerid, health - 8); // Left Arm
  336. case 6: SetPlayerHealth(playerid, health - 8); // Right Arm
  337. case 7: SetPlayerHealth(playerid, health - 8); // Left Leg
  338. case 8: SetPlayerHealth(playerid, health - 8); // Right Leg
  339. case 9: SetPlayerHealth(playerid, health - 50); // Head
  340. }
  341. }
  342. default:
  343. {
  344. switch(bodypart)
  345. {
  346. case 3: SetPlayerArmour(playerid, armour - 30); // Torso
  347. case 4: SetPlayerArmour(playerid, armour - 14); // Groin
  348. case 5: SetPlayerArmour(playerid, armour - 6); // Left Arm
  349. case 6: SetPlayerArmour(playerid, armour - 6); // Right Arm
  350. case 7: SetPlayerArmour(playerid, armour - 6); // Left Leg
  351. case 8: SetPlayerArmour(playerid, armour - 6); // Right Leg
  352. case 9: SetPlayerArmour(playerid, armour - 40); // Head
  353. }
  354. }
  355. }
  356. }
  357. case 25: // Shotgun
  358. {
  359. switch(armour)
  360. {
  361. case 0:
  362. {
  363. switch(bodypart)
  364. {
  365. case 3: SetPlayerHealth(playerid, health - 40); // Torso
  366. case 4: SetPlayerHealth(playerid, health - 18); // Groin
  367. case 5: SetPlayerHealth(playerid, health - 8); // Left Arm
  368. case 6: SetPlayerHealth(playerid, health - 8); // Right Arm
  369. case 7: SetPlayerHealth(playerid, health - 8); // Left Leg
  370. case 8: SetPlayerHealth(playerid, health - 8); // Right Leg
  371. case 9: SetPlayerHealth(playerid, health - 50); // Head
  372. }
  373. }
  374. default:
  375. {
  376. switch(bodypart)
  377. {
  378. case 3: SetPlayerArmour(playerid, armour - 30); // Torso
  379. case 4: SetPlayerArmour(playerid, armour - 14); // Groin
  380. case 5: SetPlayerArmour(playerid, armour - 6); // Left Arm
  381. case 6: SetPlayerArmour(playerid, armour - 6); // Right Arm
  382. case 7: SetPlayerArmour(playerid, armour - 6); // Left Leg
  383. case 8: SetPlayerArmour(playerid, armour - 6); // Right Leg
  384. case 9: SetPlayerArmour(playerid, armour - 40); // Head
  385. }
  386. }
  387. }
  388. }
  389. case 26: // Sawnoff Shotgun
  390. {
  391. switch(armour)
  392. {
  393. case 0:
  394. {
  395. switch(bodypart)
  396. {
  397. case 3: SetPlayerHealth(playerid, health - 14); // Torso
  398. case 4: SetPlayerHealth(playerid, health - 14); // Groin
  399. case 5: SetPlayerHealth(playerid, health - 8); // Left Arm
  400. case 6: SetPlayerHealth(playerid, health - 8); // Right Arm
  401. case 7: SetPlayerHealth(playerid, health - 8); // Left Leg
  402. case 8: SetPlayerHealth(playerid, health - 8); // Right Leg
  403. case 9: SetPlayerHealth(playerid, health - 24); // Head
  404. }
  405. }
  406. default:
  407. {
  408. switch(bodypart)
  409. {
  410. case 3: SetPlayerArmour(playerid, armour - 14); // Torso
  411. case 4: SetPlayerArmour(playerid, armour - 14); // Groin
  412. case 5: SetPlayerArmour(playerid, armour - 7); // Left Arm
  413. case 6: SetPlayerArmour(playerid, armour - 7); // Right Arm
  414. case 7: SetPlayerArmour(playerid, armour - 7); // Left Leg
  415. case 8: SetPlayerArmour(playerid, armour - 7); // Right Leg
  416. case 9: SetPlayerArmour(playerid, armour - 22); // Head
  417. }
  418. }
  419. }
  420. }
  421. case 27: // Combat Shotgun
  422. {
  423. switch(armour)
  424. {
  425. case 0:
  426. {
  427. switch(bodypart)
  428. {
  429. case 3: SetPlayerHealth(playerid, health - 17); // Torso
  430. case 4: SetPlayerHealth(playerid, health - 12); // Groin
  431. case 5: SetPlayerHealth(playerid, health - 7); // Left Arm
  432. case 6: SetPlayerHealth(playerid, health - 7); // Right Arm
  433. case 7: SetPlayerHealth(playerid, health - 7); // Left Leg
  434. case 8: SetPlayerHealth(playerid, health - 7); // Right Leg
  435. case 9: SetPlayerHealth(playerid, health - 25); // Head
  436. }
  437. }
  438. default:
  439. {
  440. switch(bodypart)
  441. {
  442. case 3: SetPlayerArmour(playerid, armour - 15); // Torso
  443. case 4: SetPlayerArmour(playerid, armour - 10); // Groin
  444. case 5: SetPlayerArmour(playerid, armour - 6); // Left Arm
  445. case 6: SetPlayerArmour(playerid, armour - 6); // Right Arm
  446. case 7: SetPlayerArmour(playerid, armour - 6); // Left Leg
  447. case 8: SetPlayerArmour(playerid, armour - 6); // Right Leg
  448. case 9: SetPlayerArmour(playerid, armour - 20); // Head
  449. }
  450. }
  451. }
  452. }
  453. case 28: // UZI
  454. {
  455. switch(armour)
  456. {
  457. case 0:
  458. {
  459. switch(bodypart)
  460. {
  461. case 3: SetPlayerHealth(playerid, health - 9); // Torso
  462. case 4: SetPlayerHealth(playerid, health - 7); // Groin
  463. case 5: SetPlayerHealth(playerid, health - 4); // Left Arm
  464. case 6: SetPlayerHealth(playerid, health - 4); // Right Arm
  465. case 7: SetPlayerHealth(playerid, health - 4); // Left Leg
  466. case 8: SetPlayerHealth(playerid, health - 4); // Right Leg
  467. case 9: SetPlayerHealth(playerid, health - 11); // Head
  468. }
  469. }
  470. default:
  471. {
  472. switch(bodypart)
  473. {
  474. case 3: SetPlayerArmour(playerid, armour - 9); // Torso
  475. case 4: SetPlayerArmour(playerid, armour - 7); // Groin
  476. case 5: SetPlayerArmour(playerid, armour - 4); // Left Arm
  477. case 6: SetPlayerArmour(playerid, armour - 4); // Right Arm
  478. case 7: SetPlayerArmour(playerid, armour - 4); // Left Leg
  479. case 8: SetPlayerArmour(playerid, armour - 4); // Right Leg
  480. case 9: SetPlayerArmour(playerid, armour - 11); // Head
  481. }
  482. }
  483. }
  484. }
  485. case 29: // MP5
  486. {
  487. switch(armour)
  488. {
  489. case 0:
  490. {
  491. switch(bodypart)
  492. {
  493. case 3: SetPlayerHealth(playerid, health - 12); // Torso
  494. case 4: SetPlayerHealth(playerid, health - 9); // Groin
  495. case 5: SetPlayerHealth(playerid, health - 6); // Left Arm
  496. case 6: SetPlayerHealth(playerid, health - 6); // Right Arm
  497. case 7: SetPlayerHealth(playerid, health - 6); // Left Leg
  498. case 8: SetPlayerHealth(playerid, health - 6); // Right Leg
  499. case 9: SetPlayerHealth(playerid, health - 16); // Head
  500. }
  501. }
  502. default:
  503. {
  504. switch(bodypart)
  505. {
  506. case 3: SetPlayerArmour(playerid, armour - 12); // Torso
  507. case 4: SetPlayerArmour(playerid, armour - 9); // Groin
  508. case 5: SetPlayerArmour(playerid, armour - 6); // Left Arm
  509. case 6: SetPlayerArmour(playerid, armour - 6); // Right Arm
  510. case 7: SetPlayerArmour(playerid, armour - 6); // Left Leg
  511. case 8: SetPlayerArmour(playerid, armour - 6); // Right Leg
  512. case 9: SetPlayerArmour(playerid, armour - 16); // Head
  513. }
  514. }
  515. }
  516. }
  517. case 30: // AK-47
  518. {
  519. switch(armour)
  520. {
  521. case 0:
  522. {
  523. switch(bodypart)
  524. {
  525. case 3: SetPlayerHealth(playerid, health - 20); // Torso
  526. case 4: SetPlayerHealth(playerid, health - 15); // Groin
  527. case 5: SetPlayerHealth(playerid, health - 8); // Left Arm
  528. case 6: SetPlayerHealth(playerid, health - 8); // Right Arm
  529. case 7: SetPlayerHealth(playerid, health - 8); // Left Leg
  530. case 8: SetPlayerHealth(playerid, health - 8); // Right Leg
  531. case 9: SetPlayerHealth(playerid, health - 25); // Head
  532. }
  533. }
  534. default:
  535. {
  536. switch(bodypart)
  537. {
  538. case 3: SetPlayerArmour(playerid, armour - 20); // Torso
  539. case 4: SetPlayerArmour(playerid, armour - 15); // Groin
  540. case 5: SetPlayerArmour(playerid, armour - 8); // Left Arm
  541. case 6: SetPlayerArmour(playerid, armour - 8); // Right Arm
  542. case 7: SetPlayerArmour(playerid, armour - 8); // Left Leg
  543. case 8: SetPlayerArmour(playerid, armour - 8); // Right Leg
  544. case 9: SetPlayerArmour(playerid, armour - 25); // Head
  545. }
  546. }
  547. }
  548. }
  549. case 31: // M4
  550. {
  551. switch(armour)
  552. {
  553. case 0:
  554. {
  555. switch(bodypart)
  556. {
  557. case 3: SetPlayerHealth(playerid, health - 15); // Torso
  558. case 4: SetPlayerHealth(playerid, health - 12); // Groin
  559. case 5: SetPlayerHealth(playerid, health - 8); // Left Arm
  560. case 6: SetPlayerHealth(playerid, health - 8); // Right Arm
  561. case 7: SetPlayerHealth(playerid, health - 8); // Left Leg
  562. case 8: SetPlayerHealth(playerid, health - 8); // Right Leg
  563. case 9: SetPlayerHealth(playerid, health - 20); // Head
  564. }
  565. }
  566. default:
  567. {
  568. switch(bodypart)
  569. {
  570. case 3: SetPlayerArmour(playerid, armour - 15); // Torso
  571. case 4: SetPlayerArmour(playerid, armour - 12); // Groin
  572. case 5: SetPlayerArmour(playerid, armour - 8); // Left Arm
  573. case 6: SetPlayerArmour(playerid, armour - 8); // Right Arm
  574. case 7: SetPlayerArmour(playerid, armour - 8); // Left Leg
  575. case 8: SetPlayerArmour(playerid, armour - 8); // Right Leg
  576. case 9: SetPlayerArmour(playerid, armour - 20); // Head
  577. }
  578. }
  579. }
  580. }
  581. case 32: // Tec-9
  582. {
  583. switch(armour)
  584. {
  585. case 0:
  586. {
  587. switch(bodypart)
  588. {
  589. case 3: SetPlayerHealth(playerid, health - 9); // Torso
  590. case 4: SetPlayerHealth(playerid, health - 7); // Groin
  591. case 5: SetPlayerHealth(playerid, health - 4); // Left Arm
  592. case 6: SetPlayerHealth(playerid, health - 4); // Right Arm
  593. case 7: SetPlayerHealth(playerid, health - 4); // Left Leg
  594. case 8: SetPlayerHealth(playerid, health - 4); // Right Leg
  595. case 9: SetPlayerHealth(playerid, health - 11); // Head
  596. }
  597. }
  598. default:
  599. {
  600. switch(bodypart)
  601. {
  602. case 3: SetPlayerArmour(playerid, armour - 9); // Torso
  603. case 4: SetPlayerArmour(playerid, armour - 7); // Groin
  604. case 5: SetPlayerArmour(playerid, armour - 4); // Left Arm
  605. case 6: SetPlayerArmour(playerid, armour - 4); // Right Arm
  606. case 7: SetPlayerArmour(playerid, armour - 4); // Left Leg
  607. case 8: SetPlayerArmour(playerid, armour - 4); // Right Leg
  608. case 9: SetPlayerArmour(playerid, armour - 11); // Head
  609. }
  610. }
  611. }
  612. }
  613. case 33: // County Rifle
  614. {
  615. switch(armour)
  616. {
  617. case 0:
  618. {
  619. switch(bodypart)
  620. {
  621. case 3: SetPlayerHealth(playerid, health - 40); // Torso
  622. case 4: SetPlayerHealth(playerid, health - 35); // Groin
  623. case 5: SetPlayerHealth(playerid, health - 10); // Left Arm
  624. case 6: SetPlayerHealth(playerid, health - 10); // Right Arm
  625. case 7: SetPlayerHealth(playerid, health - 15); // Left Leg
  626. case 8: SetPlayerHealth(playerid, health - 15); // Right Leg
  627. case 9: SetPlayerHealth(playerid, health - 70); // Head
  628. }
  629. }
  630. default:
  631. {
  632. switch(bodypart)
  633. {
  634. case 3: SetPlayerArmour(playerid, armour - 25); // Torso
  635. case 4: SetPlayerArmour(playerid, armour - 15); // Groin
  636. case 5: SetPlayerArmour(playerid, armour - 8); // Left Arm
  637. case 6: SetPlayerArmour(playerid, armour - 8); // Right Arm
  638. case 7: SetPlayerArmour(playerid, armour - 12); // Left Leg
  639. case 8: SetPlayerArmour(playerid, armour - 12); // Right Leg
  640. case 9: SetPlayerArmour(playerid, armour - 40); // Head
  641. }
  642. }
  643. }
  644. }
  645. case 34: // Sniper Rifle
  646. {
  647. switch(armour)
  648. {
  649. case 0:
  650. {
  651. switch(bodypart)
  652. {
  653. case 3: SetPlayerHealth(playerid, health - 70); // Torso
  654. case 4: SetPlayerHealth(playerid, health - 40); // Groin
  655. case 5: SetPlayerHealth(playerid, health - 15); // Left Arm
  656. case 6: SetPlayerHealth(playerid, health - 15); // Right Arm
  657. case 7: SetPlayerHealth(playerid, health - 15); // Left Leg
  658. case 8: SetPlayerHealth(playerid, health - 15); // Right Leg
  659. case 9: SetPlayerHealth(playerid, health - 100); // Head
  660. }
  661. }
  662. default:
  663. {
  664. switch(bodypart)
  665. {
  666. case 3: SetPlayerArmour(playerid, armour - 35); // Torso
  667. case 4: SetPlayerArmour(playerid, armour - 20); // Groin
  668. case 5: SetPlayerArmour(playerid, armour - 7); // Left Arm
  669. case 6: SetPlayerArmour(playerid, armour - 7); // Right Arm
  670. case 7: SetPlayerArmour(playerid, armour - 7); // Left Leg
  671. case 8: SetPlayerArmour(playerid, armour - 7); // Right Leg
  672. case 9: SetPlayerArmour(playerid, armour - 50); // Head
  673. }
  674. }
  675. }
  676. }
  677. case 37: // Fire
  678. {
  679. SetPlayerHealth(playerid, health - 1);
  680. }
  681. case 38: // Minigun
  682. {
  683. SetPlayerHealth(playerid, health - 5);
  684. }
  685. case 41: // Spraycan
  686. {
  687. SetPlayerHealth(playerid, health - 0);
  688. }
  689. case 42: // Fire Extinguisher
  690. {
  691. SetPlayerHealth(playerid, health - 0);
  692. }
  693. case 46: // parachute
  694. {
  695. SetPlayerHealth(playerid, health - 5);
  696. }
  697. case 51: // Explosions
  698. {
  699. SetPlayerHealth(playerid, health - 75);
  700. }
  701. }
  702. return 1;
  703. }
Advertisement
Add Comment
Please, Sign In to add comment