Guest User

Untitled

a guest
Sep 4th, 2012
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. // Bleedout system by Kain1297 // Enjoy!
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5.  
  6. #if defined FILTERSCRIPT
  7. new Text:Textdraw5;
  8. forward blood(playerid);
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Bleedout FS by Kain1297");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35. // Create the textdraws:
  36. Textdraw5 = TextDrawCreate(306.000000, -2.000000, ".");
  37. TextDrawAlignment(Textdraw5, 2);
  38. TextDrawBackgroundColor(Textdraw5, 255);
  39. TextDrawFont(Textdraw5, 1);
  40. TextDrawLetterSize(Textdraw5, 0.889999, 51.199993);
  41. TextDrawColor(Textdraw5, -1);
  42. TextDrawSetOutline(Textdraw5, 0);
  43. TextDrawSetProportional(Textdraw5, 1);
  44. TextDrawSetShadow(Textdraw5, 1);
  45. TextDrawUseBox(Textdraw5, 1);
  46. TextDrawBoxColor(Textdraw5, -1207959526);
  47. TextDrawTextSize(Textdraw5, 29.000000, 664.000000);
  48. return 1;
  49. }
  50.  
  51. public OnGameModeExit()
  52. {
  53. return 1;
  54. }
  55.  
  56. public OnPlayerRequestClass(playerid, classid)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerConnect(playerid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDisconnect(playerid, reason)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerSpawn(playerid)
  72. {
  73. SetTimerEx("blood",1000,true,"i",playerid);
  74. return 1;
  75. }
  76. public blood(playerid)
  77. {
  78. new Float:HP;
  79. GetPlayerHealth(playerid,HP);
  80. if(HP <= 20)
  81. {
  82. GameTextForPlayer(playerid,"~w~Your hurt! Get down!",2000,6);
  83. TextDrawShowForPlayer(playerid,Textdraw5);
  84. }
  85. else
  86. {
  87. TextDrawHideForPlayer(playerid,Textdraw5);
  88. }
  89. }
  90. public OnPlayerDeath(playerid, killerid, reason)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnVehicleSpawn(vehicleid)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnVehicleDeath(vehicleid, killerid)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerText(playerid, text[])
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerCommandText(playerid, cmdtext[])
  111. {
  112. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  113. {
  114. // Do something here
  115. return 1;
  116. }
  117. return 0;
  118. }
  119.  
  120. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerExitVehicle(playerid, vehicleid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerStateChange(playerid, newstate, oldstate)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerEnterCheckpoint(playerid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerLeaveCheckpoint(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnPlayerEnterRaceCheckpoint(playerid)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerLeaveRaceCheckpoint(playerid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnRconCommand(cmd[])
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerRequestSpawn(playerid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnObjectMoved(objectid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerObjectMoved(playerid, objectid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerPickUpPickup(playerid, pickupid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnVehicleMod(playerid, vehicleid, componentid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerSelectedMenuRow(playerid, row)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerExitedMenu(playerid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnRconLoginAttempt(ip[], password[], success)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerUpdate(playerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerStreamIn(playerid, forplayerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerStreamOut(playerid, forplayerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnVehicleStreamIn(vehicleid, forplayerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnVehicleStreamOut(vehicleid, forplayerid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  251. {
  252. return 1;
  253. }
Advertisement
Add Comment
Please, Sign In to add comment