Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. ////////
  2. new
  3. msg[128],
  4. killerName[MAX_PLAYER_NAME],
  5. reasonMsg[32],
  6. playerName[MAX_PLAYER_NAME];
  7. GetPlayerName(killerid, killerName, sizeof(killerName));
  8. GetPlayerName(playerid, playerName, sizeof(playerName));
  9. if (killerid != INVALID_PLAYER_ID)
  10. {
  11. switch (reason)
  12. {
  13. case 0:
  14. {
  15. reasonMsg = "Unarmed";
  16. }
  17. case 1:
  18. {
  19. reasonMsg = "Brass Knuckles";
  20. }
  21. case 2:
  22. {
  23. reasonMsg = "Golf Club";
  24. }
  25. case 3:
  26. {
  27. reasonMsg = "Night Stick";
  28. }
  29. case 4:
  30. {
  31. reasonMsg = "Knife";
  32. }
  33. case 5:
  34. {
  35. reasonMsg = "Baseball Bat";
  36. }
  37. case 6:
  38. {
  39. reasonMsg = "Shovel";
  40. }
  41. case 7:
  42. {
  43. reasonMsg = "Pool Cue";
  44. }
  45. case 8:
  46. {
  47. reasonMsg = "Katana";
  48. }
  49. case 9:
  50. {
  51. reasonMsg = "Chainsaw";
  52. }
  53. case 10:
  54. {
  55. reasonMsg = "Dildo";
  56. }
  57. case 11:
  58. {
  59. reasonMsg = "Dildo";
  60. }
  61. case 12:
  62. {
  63. reasonMsg = "Vibrator";
  64. }
  65. case 13:
  66. {
  67. reasonMsg = "Vibrator";
  68. }
  69. case 14:
  70. {
  71. reasonMsg = "Flowers";
  72. }
  73. case 15:
  74. {
  75. reasonMsg = "Cane";
  76. }
  77. case 22:
  78. {
  79. reasonMsg = "Pistol";
  80. }
  81. case 23:
  82. {
  83. reasonMsg = "Silenced Pistol";
  84. }
  85. case 24:
  86. {
  87. reasonMsg = "Desert Eagle";
  88. }
  89. case 25:
  90. {
  91. reasonMsg = "Shotgun";
  92. }
  93. case 26:
  94. {
  95. reasonMsg = "Sawn-off Shotgun";
  96. }
  97. case 27:
  98. {
  99. reasonMsg = "Combat Shotgun";
  100. }
  101. case 28:
  102. {
  103. reasonMsg = "MAC-10";
  104. }
  105. case 29:
  106. {
  107. reasonMsg = "MP5";
  108. }
  109. case 30:
  110. {
  111. reasonMsg = "AK-47";
  112. }
  113. case 31:
  114. {
  115. if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  116. {
  117. switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
  118. {
  119. case 447:
  120. {
  121. reasonMsg = "Sea Sparrow Machine Gun";
  122. }
  123. default:
  124. {
  125. reasonMsg = "M4";
  126. }
  127. }
  128. }
  129. else
  130. {
  131. reasonMsg = "M4";
  132. }
  133. }
  134. case 32:
  135. {
  136. reasonMsg = "TEC-9";
  137. }
  138. case 33:
  139. {
  140. reasonMsg = "Rifle";
  141. }
  142. case 34:
  143. {
  144. reasonMsg = "Sniper Rifle";
  145. }
  146. case 37:
  147. {
  148. reasonMsg = "Fire";
  149. }
  150. case 38:
  151. {
  152. if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  153. {
  154. switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
  155. {
  156. case 425:
  157. {
  158. reasonMsg = "Hunter Machine Gun";
  159. }
  160. default:
  161. {
  162. reasonMsg = "Minigun";
  163. }
  164. }
  165. }
  166. else
  167. {
  168. reasonMsg = "Minigun";
  169. }
  170. }
  171. case 41:
  172. {
  173. reasonMsg = "Spraycan";
  174. }
  175. case 42:
  176. {
  177. reasonMsg = "Fire Extinguisher";
  178. }
  179. case 49:
  180. {
  181. reasonMsg = "Vehicle Collision";
  182. }
  183. case 50:
  184. {
  185. if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  186. {
  187. switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
  188. {
  189. case 417, 425, 447, 465, 469, 487, 488, 497, 501, 548, 563:
  190. {
  191. reasonMsg = "Helicopter Blades";
  192. }
  193. default:
  194. {
  195. reasonMsg = "Vehicle Collision";
  196. }
  197. }
  198. }
  199. else
  200. {
  201. reasonMsg = "Vehicle Collision";
  202. }
  203. }
  204. case 51:
  205. {
  206. if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  207. {
  208. switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
  209. {
  210. case 425:
  211. {
  212. reasonMsg = "Hunter Rockets";
  213. }
  214. case 432:
  215. {
  216. reasonMsg = "Rhino Turret";
  217. }
  218. case 520:
  219. {
  220. reasonMsg = "Hydra Rockets";
  221. }
  222. default:
  223. {
  224. reasonMsg = "Explosion";
  225. }
  226. }
  227. }
  228. else
  229. {
  230. reasonMsg = "Explosion";
  231. }
  232. }
  233. default:
  234. {
  235. reasonMsg = "Unknown";
  236. }
  237. }
  238. format(msg, sizeof(msg), "[SMRT] %s je ubio %s. (%s)", killerName, playerName, reasonMsg);
  239. }
  240. else
  241. {
  242. switch (reason)
  243. {
  244. case 53:
  245. {
  246. format(msg, sizeof(msg), "[SMRT] %s je umro.(Drowned)", playerName);
  247. }
  248. case 54:
  249. {
  250. format(msg, sizeof(msg), "[SMRT] %s je umro.(Collision)", playerName);
  251. }
  252. default:
  253. {
  254. format(msg, sizeof(msg), "[SMRT] %s je umro.", playerName);
  255. }
  256. }
  257. }
  258. SendClientMessageToAll(0xFF9900AA, msg);
  259. ////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement