Advertisement
Guest User

Untitled

a guest
Apr 8th, 2011
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 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(" Test GameMode By Jing");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32. // Colour Defines
  33. #define COLOR_GREY 0xAFAFAFAA
  34. #define COLOR_RED 0xAA3333AA
  35. #define COLOR_NEWS 0xFFA500AA
  36. #define COLOR_YELLOW 0xF5DEB3AA
  37.  
  38.  
  39. public OnGameModeInit()
  40. {
  41. // Don't use these lines if it's a filterscript
  42. SetGameModeText("JDM V1");
  43. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerRequestClass(playerid, classid)
  53. {
  54. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  55. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  56. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  57. return 1;
  58. }
  59.  
  60. public OnPlayerConnect(playerid)
  61. {
  62. SendClientMessageToAll (COLOR_RED, "Someone has just joined the server... why don't you kill em?");
  63. SendClientMessage (playerid, COLOR_YELLOW, "Welcome, Use /help to begin!");
  64. return 1;
  65. }
  66.  
  67. public OnPlayerDisconnect(playerid, reason)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerSpawn(playerid)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerDeath(playerid, killerid, reason)
  78. {
  79. SendClientMessage(playerid, COLOR_RED, "Haha, You died, tuff luck!");
  80. return 1;
  81. }
  82.  
  83. public OnVehicleSpawn(vehicleid)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnVehicleDeath(vehicleid, killerid)
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerText(playerid, text[])
  94. {
  95. return 1;
  96. }
  97.  
  98. public OnPlayerCommandText(playerid, cmdtext[])
  99. {
  100. if (strcmp("/weapons", cmdtext, true) == 0)
  101. {
  102. GivePlayerWeapon(playerid,30,999999);
  103. GivePlayerWeapon(playerid,31,999999);
  104. GivePlayerWeapon(playerid,29,999999);
  105. GivePlayerWeapon(playerid,24,999999);
  106. return 1;
  107. }
  108. if (strcmp("/credits", cmdtext, true) == 0)
  109. {
  110. SendClientMessage(playerid, COLOR_RED, "Credits To MaxedOutStudio, JoeyTucker << Great Scripting Help.");
  111. return 1;
  112. }
  113. if (strcmp("/commands", cmdtext, true) == 0)
  114. {
  115. SendClientMessage(playerid, COLOR_NEWS, "Listed Below Are All The Commands for a FAIR game.");
  116. SendClientMessage(playerid, COLOR_RED, " ---------- /kill -------------");
  117. SendClientMessage(playerid, COLOR_YELLOW, " ---------- /help -------------");
  118. SendClientMessage(playerid, COLOR_GREY, " ---------- /hi ---------------");
  119. SendClientMessage(playerid, COLOR_NEWS, " ---------- /heal --------------");
  120. SendClientMessage(playerid, COLOR_YELLOW, " ---------- /credits --------------");
  121. SendClientMessage(playerid, COLOR_RED, " ---------- /weapons -------------");
  122. return 1;
  123. }
  124.  
  125. if (strcmp("/help", cmdtext, true) == 0)
  126. {
  127. SendClientMessage(playerid, COLOR_NEWS, "Welcome To JDM, Owned & Scripted By Jing.");
  128. SendClientMessage(playerid, COLOR_NEWS, "Type /commands for all the commands you need to know!");
  129. return 1;
  130. }
  131. if (strcmp("/kill", cmdtext, true) == 0)
  132. {
  133. SetPlayerHealth (playerid, 0);
  134. SendClientMessage(playerid, COLOR_RED, "You have commited suicide.");
  135. return 1;
  136. }
  137. if (strcmp("/heal", cmdtext, true) == 0)
  138. {
  139. SetPlayerHealth (playerid, 100);
  140. SendClientMessage(playerid, COLOR_GREY, "You have been successfully healed!");
  141. return 1;
  142. }
  143. if (strcmp("/hi", cmdtext, true) == 0)
  144. {
  145. SendClientMessage(playerid, COLOR_RED, "Hello Welcome To The first ever server built up by Jing!!");
  146. return 1;
  147.  
  148. }
  149. }
  150.  
  151. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerExitVehicle(playerid, vehicleid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerStateChange(playerid, newstate, oldstate)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerEnterCheckpoint(playerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerLeaveCheckpoint(playerid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerEnterRaceCheckpoint(playerid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerLeaveRaceCheckpoint(playerid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnRconCommand(cmd[])
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerRequestSpawn(playerid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnObjectMoved(objectid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerObjectMoved(playerid, objectid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerPickUpPickup(playerid, pickupid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnVehicleMod(playerid, vehicleid, componentid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerSelectedMenuRow(playerid, row)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnPlayerExitedMenu(playerid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnRconLoginAttempt(ip[], password[], success)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnPlayerUpdate(playerid)
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnPlayerStreamIn(playerid, forplayerid)
  257. {
  258. return 1;
  259. }
  260.  
  261. public OnPlayerStreamOut(playerid, forplayerid)
  262. {
  263. return 1;
  264. }
  265.  
  266. public OnVehicleStreamIn(vehicleid, forplayerid)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnVehicleStreamOut(vehicleid, forplayerid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  282. {
  283. return 1;
  284. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement