Guest User

Untitled

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