Advertisement
Guest User

Untitled

a guest
Oct 27th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 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. new car[MAX_VEHICLES];
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Blank Filterscript by your name here");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27. print("\n----------------------------------");
  28. print(" Blank Gamemode by your name here");
  29. print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36. // Don't use these lines if it's a filterscript
  37. SetGameModeText("Blank Script");
  38. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39. return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72. return 1;
  73. }
  74.  
  75.  
  76. public OnVehicleDeath(vehicleid, killerid)
  77. {
  78. for(new i = 0; i < MAX_VEHICLES; i++)//This loop will check all players at one time
  79. {
  80. DestroyVehicle(car[i]);
  81. }
  82. return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92. if (strcmp("/car", cmdtext, true, 10) == 0)
  93. {
  94. new Float:x, Float:y, Float:z;
  95. GetPlayerPos(playerid, x, y, z);
  96. car[0] = CreateVehicle(400, x, y, z, 10, -1, -1, -1);
  97. return 1;
  98. }
  99. return 0;
  100. }
  101. public OnVehicleSpawn(vehicleid)
  102. {
  103.  
  104.  
  105. return 1;
  106. }
  107.  
  108. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  109. {
  110. return 1;
  111. }
  112.  
  113. public OnPlayerExitVehicle(playerid, vehicleid)
  114. {
  115. return 1;
  116. }
  117.  
  118. public OnPlayerStateChange(playerid, newstate, oldstate)
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnPlayerEnterCheckpoint(playerid)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnPlayerLeaveCheckpoint(playerid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerEnterRaceCheckpoint(playerid)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerLeaveRaceCheckpoint(playerid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnRconCommand(cmd[])
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnPlayerRequestSpawn(playerid)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnObjectMoved(objectid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerObjectMoved(playerid, objectid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerPickUpPickup(playerid, pickupid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnVehicleMod(playerid, vehicleid, componentid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerSelectedMenuRow(playerid, row)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerExitedMenu(playerid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnRconLoginAttempt(ip[], password[], success)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerUpdate(playerid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerStreamIn(playerid, forplayerid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnPlayerStreamOut(playerid, forplayerid)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnVehicleStreamIn(vehicleid, forplayerid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnVehicleStreamOut(vehicleid, forplayerid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  239. {
  240. return 1;
  241. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement