Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x9EC73DAA
- #define COLOR_GROVE 0x00FF00FF
- #define COLOR_RED 0xAA3333AA
- #define COLOR_COOLRED 0xB35959AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_DARKRED 0x660000AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_VIOLET 0x9955DEEE
- #define COLOR_GRAYWHITE 0xEEEEFFC4
- #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
- #define COLOR_GREENISHGOLD 0xCCFFDD56
- #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
- #define COLOR_NEUTRALBLUE 0xABCDEF01
- #define COLOR_LIGHTCYAN 0xAAFFCC33
- #define COLOR_LEMON 0xDDDD2357
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xDABB3EAA
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_CHAT1 0xF9B7FFAA
- #define COLOR_CHAT2 0xE6A9ECAA
- #define COLOR_CHAT3 0xC38EC7AA
- #define COLOR_CHAT4 0xD2B9D3AA
- #define COLOR_CHAT5 0xC6AEC7AA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_NEWS 0x458E1DAA
- #define COLOR_OOC 0xE0FFFFAA
- #define TEAM_CYAN 1
- #define TEAM_BLUE 2
- #define TEAM_GREEN 3
- #define TEAM_ORANGE 4
- #define TEAM_COR 5
- #define TEAM_BAR 6
- #define TEAM_TAT 7
- #define TEAM_CUN 8
- #define TEAM_STR 9
- #define TEAM_HIT 10
- #define TEAM_ADMIN 11
- #define OBJECTIVE_COLOR 0x64000064
- #define TEAM_GREEN_COLOR 0xFFFFFFAA
- #define TEAM_JOB_COLOR 0xFFB6C1AA
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define TEAM_BLUE_COLOR 0x8D8DFF00
- #define TEAM_RADIO_COLOR 0xF2D068FF
- #define COLOR_ADD 0x63FF60AA
- #define TEAM_GROVE_COLOR 0x00D900C8
- #define TEAM_VAGOS_COLOR 0xFFC801C8
- #define TEAM_BALLAS_COLOR 0xD900D3C8
- #define TEAM_AZTECAS_COLOR 0x01FCFFC8
- #define TEAM_CYAN_COLOR 0xFF8282AA
- #define COLOR_CREAM 0xFF8282AA
- #define TEAM_ORANGE_COLOR 0xFF830000
- #define TEAM_COR_COLOR 0x39393900
- #define TEAM_BAR_COLOR 0x00D90000
- #define TEAM_TAT_COLOR 0xBDCB9200
- #define TEAM_CUN_COLOR 0xD900D300
- #define TEAM_STR_COLOR 0x01FCFF00
- #define TEAM_ADMIN_COLOR 0x00808000
- #define COLOR_SIMPSONS 0xFFD90FAA
- #define COLOR_SEA 0x00808000
- #define COLOR_INVIS 0xAFAFAF00
- #define COLOR_SPEC 0xBFC0C200
- #define _time_included
- #pragma library Time
- #define COLOR_BLUE 0x2641FEAA
- #define COLOR_DBLUE 0x3333CCAA
- #define COLOR_DARKNICERED 0x9D000096
- #define COLOR_LIGHT_BLUE 0xa9c4e4FF
- new Menu:buycar;
- new Menu:CurrentMenu = GetPlayerMenu(playerid);
- main()
- {
- print("\n----------------------------------");
- print(" Street Racing RP - Armaan Amirani");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- SetGameModeText("Street Racing RP");
- AddPlayerClass(240,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(242,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(243,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(0,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(1,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(2,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(3,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddPlayerClass(4,478.0913,-1499.2458,20.4889,264.6647,0,0,0,0,0,0);
- AddStaticVehicle(542,1339.9396,-896.0327,36.9196,179.3385,18,1); // Clover1
- AddStaticVehicle(542,1339.9482,-908.9639,35.8091,180.4151,18,1); // Clover2
- buycar = CreateMenu("Buy a New Car", 1, 200.0, 100.0, 150.0, 150.0);
- AddMenuItem(buycar, 0, "Clover $10,000");
- AddMenuItem(buycar, 0, "Admiral $30,000");
- AddMenuItem(buycar, 0, "Premier $45,000");
- AddMenuItem(buycar, 0, "Buffalo $70,000");
- AddMenuItem(buycar, 0, "Phoenix $75,000");
- AddMenuItem(buycar, 0, "Jester $80,000");
- AddStaticPickup(1239,1,511.8329,-1510.9016,14.5666,0); //Car Dealership
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 478.0913,-1499.2458,20.4889);
- SetPlayerCameraPos(playerid, 487.3965,-1499.5303,20.2981);
- SetPlayerCameraLookAt(playerid, 487.3965,-1499.5303,20.2981);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_ORANGE, "Welcome to (0x0FFDD349)Street Racing Roleplay! (0xFF9900AA)Enjoy your time here!"); //Multiple
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- GivePlayerMoney(playerid, 10000);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/buycar", cmdtext, true, 10) == 0) //Car Purchase, Location.
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3, 511.8329,-1510.9016,14.5666)));
- }
- {
- SendClientMessage(playerid, COLOR_WHITE, "Loading Menu.");
- ShowMenuForPlayer(buycar,playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are not at the Car Dealership! Located East of Spawn!");
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- if(CurrentMenu == teleportmenu)
- {
- switch(row)
- {
- case 0: //Clover
- {
- GivePlayerMoney(playerid, -10000);
- AddStaticVehicle(542,526.2572,-1509.6642,14.1422,-1,-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Clover!");
- }
- case 1: //Admiral
- {
- GivePlayerMoney(playerid, -30000);
- AddStaticVehicle(445,526.2572,-1509.6642,14.1422,-1,-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Admiral!");
- }
- case 2: //Premier
- {
- GivePlayerMoney(playerid, -45000);
- AddStaticVehicle(426,526.2572,-1509.6642,14.1422,-1,-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Premier!");
- }
- case 3: //Buffalo
- {
- GivePlayerMoney(playerid, -70000);
- AddStaticVehicle(402,526.2572,-1509.6642,14.1422,-1-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Buffalo!!");
- }
- case 4: //Phoenix
- {
- GivePlayerMoney(playerid, -75000);
- AddStaticVehicle(603,526.2572,-1509.6642,14.1422,-1,-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Phoenix!");
- }
- case 5: //Jester
- {
- GivePlayerMoney(playerid, -80000);
- AddStaticVehicle(559,526.2572,-1509.6642,14.1422,-1,-1);
- SendClientMessage(playerid, 0xFFFFFFFF, "Congratulations on the purchase of your new Jester!!");
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment