Guest User

Untitled

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 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 <sscanf2>
  7. #include <SII>
  8. #include <dini>
  9. #include <streamer>
  10.  
  11.  
  12.  
  13.  
  14.  
  15. #if defined FILTERSCRIPT
  16.  
  17.  
  18. #define COLOR_GREY 0xAFAFAFAA
  19. #define COLOR_GREEN 0x33AA33AA
  20. #define COLOR_RED 0xAA3333AA
  21. #define COLOR_YELLOW 0xFFFF00AA
  22. #define COLOR_WHITE 0xFFFFFFAA
  23. #define COLOR_BLUE 0x0000BBAA
  24. #define COLOR_LIGHTBLUE 0x33CCFFAA
  25. #define COLOR_ORANGE 0xFF9900AA
  26. #define COLOR_RED 0xAA3333AA
  27. #define COLOR_LIME 0x10F441AA
  28. #define COLOR_MAGENTA 0xFF00FFFF
  29. #define COLOR_NAVY 0x000080AA
  30. #define COLOR_AQUA 0xF0F8FFAA
  31. #define COLOR_CRIMSON 0xDC143CAA
  32. #define COLOR_FLBLUE 0x6495EDAA
  33. #define COLOR_BISQUE 0xFFE4C4AA
  34. #define COLOR_BLACK 0x000000AA
  35. #define COLOR_CHARTREUSE 0x7FFF00AA
  36. #define COLOR_BROWN 0XA52A2AAA
  37. #define COLOR_CORAL 0xFF7F50AA
  38. #define COLOR_GOLD 0xB8860BAA
  39. #define COLOR_GREENYELLOW 0xADFF2FAA
  40. #define COLOR_INDIGO 0x4B00B0AA
  41. #define COLOR_IVORY 0xFFFF82AA
  42. #define COLOR_LAWNGREEN 0x7CFC00AA
  43. #define COLOR_SEAGREEN 0x20B2AAAA
  44. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  45. #define COLOR_MIDNIGHTBLUE 0X191970AA
  46. #define COLOR_MAROON 0x800000AA
  47. #define COLOR_OLIVE 0x808000AA
  48. #define COLOR_ORANGERED 0xFF4500AA
  49. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  50. #define COLOR_SEAGREEN 0x2E8B57AA
  51. #define COLOR_SPRINGGREEN 0x00FF7FAA
  52. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  53. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  54. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  55. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  56. #define WHITE 0xFFFFFFFF
  57. #define COLOR_UNEMD 0x99CEFFFF
  58. #define COLOR_ORANGE 0xffcc00FF
  59. #define COLOR_GRAD1 0xB4B5B7FF
  60. #define COLOR_GREEN 0x33AA33AA
  61. #define COLOR_USAGE 0xEFEFF7AA
  62. #define PlayAudioStreamForPlayer
  63.  
  64.  
  65.  
  66. public OnFilterScriptInit()
  67. {
  68. print("\n--------------------------------------");
  69. print(" Blank Filterscript by your name here");
  70. print("--------------------------------------\n");
  71. return 1;
  72. }
  73.  
  74. public OnFilterScriptExit()
  75. {
  76. return 1;
  77. }
  78.  
  79. #else
  80.  
  81. main()
  82. {
  83. print("\n----------------------------------");
  84. print(" Modern Life Roleplay v0.1");
  85. print("----------------------------------\n");
  86. }
  87.  
  88. #endif
  89.  
  90. public OnGameModeInit()
  91. {
  92. // Don't use these lines if it's a filterscript
  93. SetGameModeText("ML-RP");
  94. ShowPlayerMarkers(0);
  95. DisableInteriorEnterExits();
  96. AddPlayerClass(126,1729.9806,-2240.9861,13.5397,180.3687,0,0,0,0,0,0); // Airport player spawn
  97. AddStaticVehicle(510,1678.5001,-2268.1494,13.1421,272.8152,6,6); // Mountain Bike airport save 1
  98. AddStaticVehicle(510,1678.4502,-2271.0005,13.1424,270.7998,6,6); // Mountain Bike airport save 2
  99. AddStaticVehicle(510,1678.7333,-2273.7915,13.1406,270.2376,6,6); // Mountain Bike airport save 3
  100. AddStaticVehicle(510,1678.7526,-2276.6724,13.1397,273.6611,6,6); // Mountain Bike airport save 4
  101. AddStaticVehicle(510,1678.5126,-2279.6289,13.1410,269.4542,6,6); // Mountain Bike airport save 5
  102. AddStaticVehicle(510,1678.6660,-2282.4619,13.1403,269.2610,6,6); // Mountain Bike airport save 6
  103. AddStaticVehicle(510,1678.8617,-2285.1924,13.1373,269.8781,6,6); // Mountain Bike airport save 7
  104. AddStaticVehicle(510,1678.6013,-2287.8850,13.1402,272.0867,6,6); // Mountain Bike airport save 8
  105. AddStaticVehicle(510,1678.7000,-2290.8914,13.1399,271.3857,6,6); // Mountain Bike airport save 9
  106. AddStaticVehicle(510,1678.7288,-2293.4788,13.1381,272.1255,6,6); // Mountain Bike airport save 10
  107. AddStaticVehicle(510,1678.6245,-2296.6619,13.1403,273.4403,6,6); // Mountain Bike airport save 11
  108. AddStaticVehicle(510,1678.6400,-2299.1687,13.1394,268.7907,6,6); // Mountain Bike airport save 12
  109.  
  110.  
  111.  
  112. return 1;
  113. }
  114.  
  115. public OnGameModeExit()
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerRequestClass(playerid, classid)
  121. {
  122. SetPlayerPos{playerid, 1476.6511,-915.2690,59.6022};
  123. SetPlayerFacingAngle{playerid, 26.2262};
  124. SetPlayerCamerPos{playerid, 1469.3384,-909.2597,59.6022};
  125. SetplayerCameraLookAt{playerid, 1476.6511,-915.2690,59.6022};
  126. return 1;
  127. }
  128.  
  129. public OnPlayerConnect(playerid)
  130. {
  131.  
  132.  
  133. SendClientMessage(playerid,0xFFFF00AA,"We Are Fixing Some Bugs Please Be Patient");
  134. TogglePlayerClock(playerid, 0); // Show the clock
  135. SetPlayerColor(playerid,0xFFFFFFAA);
  136. return 1;
  137. }
  138.  
  139. public OnPlayerDisconnect(playerid, reason)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnPlayerSpawn(playerid)
  145. {
  146. #define StartMoney 15000 // Money that player has when he/she spawns
  147. GivePlayerMoney(playerid, StartMoney);
  148. SendClientMessage(playerid,0xFFFF00AA,"Use /help for the help menu");
  149. SetPlayerColor(playerid,0xFFFFFFAA);
  150. return 1;
  151. }
  152.  
  153. public OnPlayerDeath(playerid, killerid, reason)
  154. {
  155.  
  156. return 1;
  157. }
  158.  
  159. public OnVehicleSpawn(vehicleid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnVehicleDeath(vehicleid, killerid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerText(playerid, text[])
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerCommandText(playerid, cmdtext[])
  175. {
  176. if(!strcmp(cmdtext, "/help", true)) ////////////////////////////////////////////////////////Help menu add here...
  177. {
  178. SendClientMessage(playerid, 0xffcc00FF, "---------------------Available Cmds----------------------");
  179. SendClientMessage(playerid, 0x99CEFFFF, ".::GENERAL::. /anims, /admins, /report, /ahelp, /rules");
  180. SendClientMessage(playerid, 0x99CEFFFF, ".::WEAPONS::. /dropgun, /pickupgun ");
  181. SendClientMessage(playerid, 0x99CEFFFF, ".::HOUSE::. /buyhouse, /housemenu, /enter");
  182. SendClientMessage(playerid, 0x99CEFFFF, ".::BANK::. ");
  183. SendClientMessage(playerid, 0xffcc00FF, "---------------------------------------------------------------");
  184.  
  185. return 1;
  186. // Returning 1 informs the server that the command has been processed.
  187. // OnPlayerCommandText won't be called in other scripts.
  188. }
  189. if(!strcmp(cmdtext, "/rules", true)) ////////////////////////////////////////////////////////Help menu add here...
  190. {
  191. SendClientMessage(playerid, 0xAA3333AA, "----------------------------------------RULES---------------------------------------------");
  192. SendClientMessage(playerid, 0xffcc00FF, "------------Do not kill other players without a valid reason----------------------");
  193. SendClientMessage(playerid, 0xffcc00FF, "------------Do not use your car to kill players or driving by---------------------");
  194. SendClientMessage(playerid, 0xffcc00FF, "------------Do not use hacks or any other illegal software-----------------------");
  195. SendClientMessage(playerid, 0xffcc00FF, "------------Always use /report if you see someone hacking---------------------");
  196. SendClientMessage(playerid, 0xAA3333AA, "----------------------------------------------------------------------------------------------");
  197.  
  198. return 1;
  199. // Returning 1 informs the server that the command has been processed.
  200. // OnPlayerCommandText won't be called in other scripts.
  201. }
  202.  
  203. return 0;
  204. // Returning 0 informs the server that the command hasn't been processed by this script.
  205. // OnPlayerCommandText will be called in other scripts until one returns 1.
  206. // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
  207. }
  208.  
  209.  
  210.  
  211. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  212.  
  213.  
  214. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  215. {
  216.  
  217. return 1;
  218. }
  219.  
  220. public OnPlayerExitVehicle(playerid, vehicleid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerStateChange(playerid,newstate,oldstate)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerEnterCheckpoint(playerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerLeaveCheckpoint(playerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerEnterRaceCheckpoint(playerid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnPlayerLeaveRaceCheckpoint(playerid)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnRconCommand(cmd[])
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnPlayerRequestSpawn(playerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnObjectMoved(objectid)
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnPlayerObjectMoved(playerid, objectid)
  266. {
  267. return 1;
  268. }
  269.  
  270. public OnPlayerPickUpPickup(playerid, pickupid)
  271. {
  272. return 1;
  273. }
  274.  
  275. public OnVehicleMod(playerid, vehicleid, componentid)
  276. {
  277. return 1;
  278. }
  279.  
  280. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  281. {
  282. return 1;
  283. }
  284.  
  285. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  286. {
  287. return 1;
  288. }
  289.  
  290. public OnPlayerSelectedMenuRow(playerid, row)
  291. {
  292. return 1;
  293. }
  294.  
  295. public OnPlayerExitedMenu(playerid)
  296. {
  297. return 1;
  298. }
Add Comment
Please, Sign In to add comment