Guest User

Crash Pawno

a guest
May 31st, 2011
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.01 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_GRAD1 0xB4B5B7FF
  4. #define COLOR_GRAD2 0xBFC0C2FF
  5. #define COLOR_GRAD3 0xCBCCCEFF
  6. #define COLOR_GRAD4 0xD8D8D8FF
  7. #define COLOR_GRAD5 0xE3E3E3FF
  8. #define COLOR_GRAD6 0xF0F0F0FF
  9. #define COLOR_GREY 0xAFAFAFAA
  10. #define COLOR_GREEN 0x9EC73DAA
  11. #define COLOR_GROVE 0x00FF00FF
  12. #define COLOR_RED 0xAA3333AA
  13. #define COLOR_COOLRED 0xB35959AA
  14. #define COLOR_ORANGE 0xFF9900AA
  15. #define COLOR_PINK 0xFF66FFAA
  16. #define COLOR_DARKRED 0x660000AA
  17. #define COLOR_BRIGHTRED 0xFF0000AA
  18. #define COLOR_INDIGO 0x4B00B0AA
  19. #define COLOR_VIOLET 0x9955DEEE
  20. #define COLOR_GRAYWHITE 0xEEEEFFC4
  21. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  22. #define COLOR_GREENISHGOLD 0xCCFFDD56
  23. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  24. #define COLOR_NEUTRALBLUE 0xABCDEF01
  25. #define COLOR_LIGHTCYAN 0xAAFFCC33
  26. #define COLOR_LEMON 0xDDDD2357
  27. #define COLOR_LIGHTRED 0xFF6347AA
  28. #define COLOR_LIGHTBLUE 0x33CCFFAA
  29. #define COLOR_LIGHTGREEN 0x9ACD32AA
  30. #define COLOR_YELLOW 0xDABB3EAA
  31. #define COLOR_YELLOW2 0xF5DEB3AA
  32. #define COLOR_WHITE 0xFFFFFFAA
  33. #define COLOR_FADE1 0xE6E6E6E6
  34. #define COLOR_FADE2 0xC8C8C8C8
  35. #define COLOR_FADE3 0xAAAAAAAA
  36. #define COLOR_FADE4 0x8C8C8C8C
  37. #define COLOR_FADE5 0x6E6E6E6E
  38. #define COLOR_PURPLE 0xC2A2DAAA
  39. #define COLOR_CHAT1 0xF9B7FFAA
  40. #define COLOR_CHAT2 0xE6A9ECAA
  41. #define COLOR_CHAT3 0xC38EC7AA
  42. #define COLOR_CHAT4 0xD2B9D3AA
  43. #define COLOR_CHAT5 0xC6AEC7AA
  44. #define COLOR_ALLDEPT 0xFF8282AA
  45. #define COLOR_NEWS 0x458E1DAA
  46. #define COLOR_OOC 0xE0FFFFAA
  47. #define TEAM_CYAN 1
  48. #define TEAM_BLUE 2
  49. #define TEAM_GREEN 3
  50. #define TEAM_ORANGE 4
  51. #define TEAM_COR 5
  52. #define TEAM_BAR 6
  53. #define TEAM_TAT 7
  54. #define TEAM_CUN 8
  55. #define TEAM_STR 9
  56. #define TEAM_HIT 10
  57. #define TEAM_ADMIN 11
  58. #define OBJECTIVE_COLOR 0x64000064
  59. #define TEAM_GREEN_COLOR 0xFFFFFFAA
  60. #define TEAM_JOB_COLOR 0xFFB6C1AA
  61. #define TEAM_HIT_COLOR 0xFFFFFF00
  62. #define TEAM_BLUE_COLOR 0x8D8DFF00
  63. #define TEAM_RADIO_COLOR 0xF2D068FF
  64. #define COLOR_ADD 0x63FF60AA
  65. #define TEAM_GROVE_COLOR 0x00D900C8
  66. #define TEAM_VAGOS_COLOR 0xFFC801C8
  67. #define TEAM_BALLAS_COLOR 0xD900D3C8
  68. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  69. #define TEAM_CYAN_COLOR 0xFF8282AA
  70. #define COLOR_CREAM 0xFF8282AA
  71. #define TEAM_ORANGE_COLOR 0xFF830000
  72. #define TEAM_COR_COLOR 0x39393900
  73. #define TEAM_BAR_COLOR 0x00D90000
  74. #define TEAM_TAT_COLOR 0xBDCB9200
  75. #define TEAM_CUN_COLOR 0xD900D300
  76. #define TEAM_STR_COLOR 0x01FCFF00
  77. #define TEAM_ADMIN_COLOR 0x00808000
  78. #define COLOR_SIMPSONS 0xFFD90FAA
  79. #define COLOR_SEA 0x00808000
  80. #define COLOR_INVIS 0xAFAFAF00
  81. #define COLOR_SPEC 0xBFC0C200
  82. #define _time_included
  83. #pragma library Time
  84. #define COLOR_BLUE 0x2641FEAA
  85. #define COLOR_DBLUE 0x3333CCAA
  86. #define COLOR_DARKNICERED 0x9D000096
  87. #define COLOR_LIGHT_BLUE 0xa9c4e4FF
  88. new Menu:buycar;
  89. new Menu:CurrentMenu = GetPlayerMenu(playerid);
  90. main()
  91. {
  92.     print("\n----------------------------------");
  93.     print(" Street Racing RP - Armaan Amirani");
  94.     print("----------------------------------\n");
  95. }
  96.  
  97. #endif
  98.  
  99. public OnGameModeInit()
  100. {
  101.     SetGameModeText("Street Racing RP");
  102.     AddPlayerClass(240,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  103.     AddPlayerClass(242,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  104.     AddPlayerClass(243,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  105.     AddPlayerClass(0,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  106.     AddPlayerClass(1,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  107.     AddPlayerClass(2,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  108.     AddPlayerClass(3,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  109.     AddPlayerClass(4,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
  110.     AddStaticVehicle(542,1339.9396,-896.0327,36.9196,179.3385,18,1); // Clover1
  111.     AddStaticVehicle(542,1339.9482,-908.9639,35.8091,180.4151,18,1); // Clover2
  112.     buycar = CreateMenu("Buy a New Car", 1, 200.0, 100.0, 150.0, 150.0);
  113.     AddMenuItem(buycar, 0, "Clover $10,000");
  114.     AddMenuItem(buycar, 0, "Admiral $30,000");
  115.     AddMenuItem(buycar, 0, "Premier $45,000");
  116.     AddMenuItem(buycar, 0, "Buffalo $70,000");
  117.     AddMenuItem(buycar, 0, "Phoenix $75,000");
  118.     AddMenuItem(buycar, 0, "Jester $80,000");
  119.     AddStaticPickup(1239,1,511.8329,-1510.9016,14.5666,0); //Car Dealership
  120.  
  121.     return 1;
  122. }
  123.  
  124. public OnGameModeExit()
  125. {
  126.     return 1;
  127. }
  128.  
  129. public OnPlayerRequestClass(playerid, classid)
  130. {
  131.     SetPlayerPos(playerid, 478.0913,-1499.2458,20.4889);
  132.     SetPlayerCameraPos(playerid, 487.3965,-1499.5303,20.2981);
  133.     SetPlayerCameraLookAt(playerid, 487.3965,-1499.5303,20.2981);
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerConnect(playerid)
  138. {
  139.     SendClientMessage(playerid, COLOR_ORANGE, "Welcome to (0x0FFDD349)Street Racing Roleplay! (0xFF9900AA)Enjoy your time here!"); //Multiple
  140.     return 1;
  141. }
  142.  
  143. public OnPlayerDisconnect(playerid, reason)
  144. {
  145.     return 1;
  146. }
  147.  
  148. public OnPlayerSpawn(playerid)
  149. {
  150.     GivePlayerMoney(playerid, 10000);
  151.     return 1;
  152. }
  153.  
  154. public OnPlayerDeath(playerid, killerid, reason)
  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("/buycar", cmdtext, true, 10) == 0) //Car Purchase, Location.
  177.     {
  178.     if(!IsPlayerInRangeOfPoint(playerid, 3, 511.8329,-1510.9016,14.5666)));
  179.     }
  180.     {
  181.         SendClientMessage(playerid, COLOR_WHITE, "Loading Menu.");
  182.         ShowMenuForPlayer(buycar,playerid);
  183.         return 1;
  184.     }
  185.     else
  186.     {
  187.         SendClientMessage(playerid, COLOR_WHITE, "You are not at the Car Dealership! Located East of Spawn!");
  188.     return 0;
  189. }
  190.  
  191. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnPlayerExitVehicle(playerid, vehicleid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnPlayerStateChange(playerid, newstate, oldstate)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnPlayerEnterCheckpoint(playerid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnPlayerLeaveCheckpoint(playerid)
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnPlayerEnterRaceCheckpoint(playerid)
  217. {
  218.     return 1;
  219. }
  220.  
  221. public OnPlayerLeaveRaceCheckpoint(playerid)
  222. {
  223.     return 1;
  224. }
  225.  
  226. public OnRconCommand(cmd[])
  227. {
  228.     return 1;
  229. }
  230.  
  231. public OnPlayerRequestSpawn(playerid)
  232. {
  233.     return 1;
  234. }
  235.  
  236. public OnObjectMoved(objectid)
  237. {
  238.     return 1;
  239. }
  240.  
  241. public OnPlayerObjectMoved(playerid, objectid)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnPlayerPickUpPickup(playerid, pickupid)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnVehicleMod(playerid, vehicleid, componentid)
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  257. {
  258.     return 1;
  259. }
  260.  
  261. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  262. {
  263.     return 1;
  264. }
  265.  
  266. public OnPlayerSelectedMenuRow(playerid, row)
  267. {
  268.     if(CurrentMenu == teleportmenu)
  269.     {
  270.        switch(row)
  271.         {
  272.             case 0: //Clover
  273.             {
  274.                 GivePlayerMoney(playerid, -10000);
  275.                 AddStaticVehicle(542,526.2572,-1509.6642,14.1422,-1,-1);
  276.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Clover!");
  277.              }
  278.             case 1: //Admiral
  279.             {
  280.                 GivePlayerMoney(playerid, -30000);
  281.                 AddStaticVehicle(445,526.2572,-1509.6642,14.1422,-1,-1);
  282.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Admiral!");
  283.             }
  284.             case 2: //Premier
  285.             {
  286.                 GivePlayerMoney(playerid, -45000);
  287.                 AddStaticVehicle(426,526.2572,-1509.6642,14.1422,-1,-1);
  288.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Premier!");
  289.             }
  290.             case 3: //Buffalo
  291.             {
  292.                 GivePlayerMoney(playerid, -70000);
  293.                 AddStaticVehicle(402,526.2572,-1509.6642,14.1422,-1-1);
  294.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Buffalo!!");
  295.             }
  296.             case 4: //Phoenix
  297.             {
  298.                 GivePlayerMoney(playerid, -75000);
  299.                 AddStaticVehicle(603,526.2572,-1509.6642,14.1422,-1,-1);
  300.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Phoenix!");
  301.             }
  302.             case 5: //Jester
  303.             {
  304.                 GivePlayerMoney(playerid, -80000);
  305.                 AddStaticVehicle(559,526.2572,-1509.6642,14.1422,-1,-1);
  306.                 SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Jester!!");
  307.             }
  308.         }
  309.     }
  310. }
  311.     return 1;
  312. }
  313.  
  314. public OnPlayerExitedMenu(playerid)
  315. {
  316.     return 1;
  317. }
  318.  
  319. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  320. {
  321.     return 1;
  322. }
  323.  
  324. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  325. {
  326.     return 1;
  327. }
  328.  
  329. public OnRconLoginAttempt(ip[], password[], success)
  330. {
  331.     return 1;
  332. }
  333.  
  334. public OnPlayerUpdate(playerid)
  335. {
  336.     return 1;
  337. }
  338.  
  339. public OnPlayerStreamIn(playerid, forplayerid)
  340. {
  341.     return 1;
  342. }
  343.  
  344. public OnPlayerStreamOut(playerid, forplayerid)
  345. {
  346.     return 1;
  347. }
  348.  
  349. public OnVehicleStreamIn(vehicleid, forplayerid)
  350. {
  351.     return 1;
  352. }
  353.  
  354. public OnVehicleStreamOut(vehicleid, forplayerid)
  355. {
  356.     return 1;
  357. }
  358.  
  359. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  360. {
  361.     return 1;
  362. }
  363.  
  364. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  365. {
  366.     return 1;
  367. }
Advertisement
Add Comment
Please, Sign In to add comment