Advertisement
DJTunes

TDM Release

Dec 25th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  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(" Team Death Match by DJTunes");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35. // Don't use these lines if it's a filterscript
  36.  
  37. //Gamemode Text
  38. SetGameModeText("Team Death Match");
  39.  
  40. //Classes
  41. AddPlayerClass(287,201.1741,1869.4302,13.1406,265.2041,31,200,29,200,24,300); // //American Spawnpoint
  42. AddPlayerClass(179,1042.8230,1010.9085,11.0000,326.6804,25,200,30,200,24,300); // // Russian Spawnpoint
  43. return 1;
  44. }
  45.  
  46. public OnGameModeExit()
  47. {
  48. return 1;
  49. }
  50.  
  51. public OnPlayerRequestClass(playerid, classid)
  52. {
  53. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  54. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  55. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  56.  
  57. switch (classid)
  58. {
  59. case 0:
  60. {
  61. GameTextForPlayer(playerid, "~b~Team 1", 3000, 5);
  62. }
  63. case 1:
  64. {
  65. GameTextForPlayer(playerid, "~r~Team 2", 3000, 5);
  66. }
  67. }
  68. return 1;
  69. }
  70.  
  71. public OnPlayerConnect(playerid)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnPlayerDisconnect(playerid, reason)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnPlayerSpawn(playerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerDeath(playerid, killerid, reason)
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnVehicleSpawn(vehicleid)
  92. {
  93. return 1;
  94. }
  95.  
  96. public OnVehicleDeath(vehicleid, killerid)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerText(playerid, text[])
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerCommandText(playerid, cmdtext[])
  107. {
  108. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  109. {
  110. // Do something here
  111. return 1;
  112. }
  113. return 0;
  114. }
  115.  
  116. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerExitVehicle(playerid, vehicleid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerStateChange(playerid, newstate, oldstate)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnPlayerEnterCheckpoint(playerid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerLeaveCheckpoint(playerid)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerEnterRaceCheckpoint(playerid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerLeaveRaceCheckpoint(playerid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnRconCommand(cmd[])
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerRequestSpawn(playerid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnObjectMoved(objectid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerObjectMoved(playerid, objectid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerPickUpPickup(playerid, pickupid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnVehicleMod(playerid, vehicleid, componentid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerSelectedMenuRow(playerid, row)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerExitedMenu(playerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnRconLoginAttempt(ip[], password[], success)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerUpdate(playerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerStreamIn(playerid, forplayerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerStreamOut(playerid, forplayerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnVehicleStreamIn(vehicleid, forplayerid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnVehicleStreamOut(vehicleid, forplayerid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  247. {
  248. return 1;
  249. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement