Advertisement
Guest User

Jofi

a guest
Oct 20th, 2009
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. // Gang Colours
  2. #define COLOR_GREEN 0x33AA33AA //grove
  3. #define COLOR_PURPLE 0x800080AA //ballas
  4. #define COLOR_LIGHTBLUE 0x33CCFFAA //aztec
  5. #define COLOR_DARKRED 0x660000AA // nang
  6. #define COLOR_YELLOW 0xFFFF00AA //vago
  7. #define COLOR_BLUE 0x0000BBAA // cops
  8. #define COLOR_BLACK 0x2C2727AA //mafia
  9. #define COLOR_ORANGE 0xFF9900AA //bikers
  10. #define COLOR_WHITE 0xFFFFFFAA //triad
  11. #define COLOR_DARKBROWN 0x80400096 //Army
  12. #define COLOR_GOLD 0xB8860BAA // Admin
  13.  
  14. // Command Colours
  15. #define COLOR_RED 0xFF0000AA//0xAA3333AA
  16. #define COLOR_RED2 0xAA3333AA
  17. #define COLOR_AQUA 0xF0F8FFAA
  18. #define COLOR_SPRINGGREEN 0x00FF7FAA
  19. #define COLOR_GREY 0xAFAFAFAA
  20. #define COLOR_BRIGHTRED 0xFF0000AA
  21. #include <a_samp>
  22. new pickup_fdenter;
  23. new pickup_fdg1;
  24. new pickup_fdg2;
  25. new pickup_fdg12;
  26.  
  27. // Powerd by deLUX Map Converter
  28.  
  29. main()
  30. {
  31. print("\n----------------------------------");
  32. print(" My");
  33. print(" New");
  34. print(" FD");
  35. print("----------------------------------\n");
  36. }
  37.  
  38. public OnGameModeInit()
  39. {
  40. SetGameModeText("Fire Depardment");
  41.  
  42. // My favourite character ;)
  43. AddPlayerClass(0,1742.1881,-1695.6346,13.5407,266.1996,0,0,0,0,0,0);
  44.  
  45. // -------------------------------------------------------------
  46. // Your Objects here
  47.  
  48. CreateObject(974, 1802.904053, -1689.355469, 15.305336, 0.0000, 0.0000, 317.8876);
  49. CreateObject(974, 1807.931152, -1693.369141, 15.320096, 0.0000, 0.0000, 325.6225);
  50. CreateObject(1411, 1811.544434, -1719.336914, 17.944630, 0.0000, 0.8594, 269.7591);
  51. CreateObject(1411, 1811.630371, -1714.255737, 17.944630, 0.0000, 0.8594, 270.6186);
  52. CreateObject(1411, 1811.593994, -1708.983521, 17.944630, 0.0000, 0.8594, 270.6186);
  53. CreateObject(1411, 1811.560059, -1703.755859, 17.944630, 0.0000, 0.8594, 270.6186);
  54. CreateObject(1411, 1811.561646, -1698.537354, 17.944630, 0.0000, 0.8594, 270.6186);
  55. CreateObject(1411, 1811.467163, -1693.305176, 17.944630, 0.0000, 0.8594, 270.6186);
  56. CreateObject(1411, 1811.421631, -1689.406738, 17.944630, 0.0000, 0.8594, 270.6186);
  57. CreateObject(1411, 1808.671387, -1686.406128, 17.941711, 0.0000, 0.8594, 358.2811);
  58. CreateObject(1411, 1803.448853, -1686.294434, 17.941711, 0.0000, 0.8594, 358.2811);
  59. CreateObject(1411, 1798.221924, -1686.166626, 17.941711, 0.0000, 0.8594, 1.7189);
  60. CreateObject(1411, 1793.029541, -1686.287964, 17.941711, 0.0000, 0.8594, 0.0000);
  61. CreateObject(1411, 1787.820068, -1686.292114, 17.941711, 0.0000, 0.8594, 0.0000);
  62. CreateObject(1411, 1782.579590, -1686.306763, 17.941711, 0.0000, 0.8594, 0.0000);
  63. CreateObject(1411, 1777.339600, -1686.376099, 17.941711, 0.0000, 0.8594, 0.0000);
  64. CreateObject(1411, 1772.137085, -1686.420776, 17.941711, 0.0000, 0.8594, 0.0000);
  65. CreateObject(1411, 1766.931274, -1686.449829, 17.941711, 0.0000, 0.8594, 0.0000);
  66. CreateObject(1411, 1763.654541, -1686.527344, 17.941711, 0.0000, 0.8594, 0.0000);
  67. CreateObject(970, 1758.880005, -1688.861694, 13.021655, 0.0000, 0.0000, 0.0000);
  68. CreateObject(970, 1758.722534, -1703.517334, 13.031942, 0.0000, 0.0000, 1.7189);
  69. CreateObject(970, 1758.804810, -1694.790527, 13.024340, 0.0000, 0.0000, 0.0000);
  70. CreateObject(970, 1758.820801, -1697.284790, 13.017817, 0.0000, 0.0000, 0.8594);
  71. CreateObject(2745, 1757.273193, -1696.097534, 13.710930, 0.0000, 0.0000, 269.7591);
  72. CreateObject(1536, 1758.680786, -1711.796387, 12.524796, 0.0000, 0.0000, 269.6818);
  73. CreateObject(1536, 1758.679565, -1714.807251, 12.533935, 0.0000, 0.0000, 89.2000);
  74. CreateObject(3470, 1761.328735, -1710.643799, 21.395254, 0.0000, 0.0000, 0.0000);
  75. CreateObject(1231, 1759.107544, -1696.112305, 15.195230, 0.0000, 0.0000, 0.0000);
  76. CreateObject(1291, 1757.169678, -1687.018799, 13.029341, 0.0000, 0.0000, 0.0000);
  77. CreateObject(7245, 1771.529297, -1713.175415, -32.797913, 0.0000, 0.0000, 0.0000);
  78. CreateObject(974, 1760.253296, -1713.857666, -33.711601, 0.0000, 0.0000, 90.2409);
  79. CreateObject(974, 1760.201904, -1707.209106, -33.780415, 0.0000, 0.0000, 91.1003);
  80. CreateObject(15054, 1817.830078, -1679.976196, -27.671082, 0.0000, 0.0000, 0.0000);
  81. CreateObject(1494, 1830.329224, -1671.897705, -31.138176, 0.0000, 0.0000, 89.3814);
  82. CreateObject(936, 1811.456299, -1667.867188, -29.189043, 0.0000, 0.0000, 0.0000);
  83. CreateObject(937, 1809.580566, -1667.889771, -29.196369, 0.0000, 0.0000, 0.0000);
  84. CreateObject(1745, 1818.421753, -1682.279419, -29.672295, 0.0000, 0.0000, 179.6223);
  85.  
  86. // -------------------------------------------------------------
  87. // Pickups
  88. pickup_fdenter = CreatePickup(1239, 1, 1757.7568, -1713.6682, 13.5411, 0);
  89. pickup_fdg1 = CreatePickup(1318, 1, 1775.1172, -1704.9606, 13.5216, 0);
  90. pickup_fdg2 = CreatePickup(1318, 1, 1782.9165, -1705.0857, 13.5223, 0);
  91. pickup_fdg12 = CreatePickup(1318, 1, 1754.9189,-1689.6385,-35.2901, 0);
  92. //
  93. // ----
  94. // Cars
  95.  
  96. AddStaticVehicle(407,1777.9478,-1719.1196,-35.0481,90.0609,3,1); // firetruck 1
  97. AddStaticVehicle(407,1777.9819,-1723.7410,-35.0475,90.2338,3,1); // firetruck 2
  98. AddStaticVehicle(407,1777.5082,-1713.6177,-35.0533,88.4948,3,1); // firetruck 3
  99. AddStaticVehicle(544,1777.3060,-1709.8086,-35.0530,89.3039,3,1); // firetruck 4
  100. AddStaticVehicle(544,1778.0076,-1705.2819,-35.0554,89.5342,3,1); // firetruck 5
  101. AddStaticVehicle(490,1788.4799,-1705.5354,-35.1627,268.3066,0,0); // firetruck 6
  102. AddStaticVehicle(490,1788.4658,-1709.6871,-35.1612,269.4679,0,0); // firetruck 6
  103. AddStaticVehicle(561,1788.1528,-1714.1017,-35.4765,267.1332,8,17); // firetruck 7
  104. AddStaticVehicle(573,1789.1207,-1718.8350,-34.6397,268.9370,115,43); // firetruck 8
  105.  
  106.  
  107. return 1;
  108. }
  109.  
  110. public OnGameModeExit()
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerRequestClass(playerid, classid)
  116. {
  117. SetPlayerPos(playerid, 1755.5942,-1713.6240,13.5437);
  118. SetPlayerCameraPos(playerid, 1751.5658,-1718.8704,13.3828);
  119. SetPlayerCameraLookAt(playerid, 1755.5942,-1713.6240,13.5437);
  120. return 1;
  121. }
  122.  
  123. public OnPlayerRequestSpawn(playerid)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnPlayerConnect(playerid)
  129. {
  130. GameTextForPlayer(playerid,"~g~Welcome",4500,1);
  131. SetPlayerColor(playerid, COLOR_RED2);
  132. SetPlayerInterior(playerid,0);
  133. return 1;
  134. }
  135.  
  136. public OnPlayerDisconnect(playerid, reason)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerSpawn(playerid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerDeath(playerid, killerid, reason)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnVehicleSpawn(vehicleid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnVehicleDeath(vehicleid, killerid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerText(playerid, text[])
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerCommandText(playerid, cmdtext[])
  167. {
  168. if (strcmp("/kill", cmdtext, true, 10) == 0)
  169. {
  170. SetPlayerHealth(playerid, 0);
  171. return 1;
  172. }
  173. return 0;
  174. }
  175.  
  176. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerExitVehicle(playerid, vehicleid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerStateChange(playerid, newstate, oldstate)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerEnterCheckpoint(playerid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerLeaveCheckpoint(playerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerEnterRaceCheckpoint(playerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerLeaveRaceCheckpoint(playerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnRconCommand(cmd[])
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnObjectMoved(objectid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerObjectMoved(playerid, objectid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerPickUpPickup(playerid, pickupid)
  227. {
  228. if(pickupid == pickup_fdenter) return GameTextForPlayer(playerid,"~r~FD~w~: Get Telepored in..wait...",4000,3);
  229. if(pickupid == pickup_fdg2) return GameTextForPlayer(playerid,"~r~FD~w~: Get Telepored in..wait...",4000,3);
  230. if ( pickupid == pickup_fdg1 )
  231. {
  232. GameTextForPlayer(playerid,"~r~FD~w~: Welcome in the ~r~Fire Department",4000,3);
  233. SetPlayerInterior(playerid,0);
  234. SetPlayerPos(playerid, 1766.826660, -1689.418823, -35.316597);
  235. }
  236. if ( pickupid == pickup_fdg12 )
  237. {
  238. GameTextForPlayer(playerid,"~r~FD~w~: Get Telepored out..wait...",4000,3);
  239. SetPlayerInterior(playerid,0);
  240. SetPlayerPos(playerid, 1777.2286, -1692.2789, 13.4444);
  241. }
  242. return 1;
  243.  
  244. }
  245.  
  246. public OnPlayerSelectedMenuRow(playerid, row)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnPlayerExitedMenu(playerid)
  252. {
  253. return 1;
  254. }
  255.  
  256.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement