Advertisement
Guest User

Untitled

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