02.09.2012, 20:46
(
Последний раз редактировалось Marcynka; 02.09.2012 в 21:19.
)
I think the FS I have is already premade, all i need is for it to save the car you bought into player's stats so he could have a full control of it. Oh, and there's another problem whener I press "cancel" or "back" buttons on GUI windows I get DC'ed from the server.
This is the FS code:
This is the FS code:
Код:
#define FILTERSCRIPT #include <a_samp> #include <streamer> //Prices//////////////////////////////////////////////////////////////////////// #define comet_price 30000 #define feltzer_price 20000 #define stallion_price 20000 #define windsor_price 20000 //////////////////////////////////////////////////////////////////////////////// #define bobcat_price 15000 #define picador_price 10000 #define sadler_price 8000 #define walton_price 5000 #define yosemite_price 20000 #define utilityvan_price 15000 //////////////////////////////////////////////////////////////////////////////// #define burrito_price 15000 #define pony_price 10000 #define rumpo_price 10000 #define camper_price 8000 //////////////////////////////////////////////////////////////////////////////// #define blade_price 15000 #define broadway_price 20000 #define remington_price 25000 #define savanna_price 21000 #define slamvan_price 25000 #define tahoma_price 15000 #define tornado_price 30000 #define voodoo_price 20000 //////////////////////////////////////////////////////////////////////////////// #define bfinjection_price 30000 #define huntley_price 25000 #define landstalker_price 20000 #define mesa_price 20000 #define patriot_price 30000 #define rancher_price 25000 #define sandking_price 30000 #define tractor_price 10000 //////////////////////////////////////////////////////////////////////////////// #define admiral_price 12000 #define bloodringbanger_price 15000 #define bravura_price 13000 #define buccaneer_price 10000 #define cadrona_price 13000 #define clover_price 9000 #define elegant_price 15000 #define elegy_price 20000 #define emperor_price 14000 #define esperanto_price 12000 #define fortune_price 15000 #define glendale_price 20000 #define greenwood_price 11000 #define hermes_price 15000 #define hustler_price 15000 #define intruder_price 12000 #define majestic_price 15000 #define manana_price 11000 #define merit_price 16000 #define nebula_price 15000 #define oceanic_price 20000 #define premier_price 15000 #define previon_price 13000 #define primo_price 12000 #define sentinel_price 18000 #define stafford_price 17000 #define sultan_price 20000 #define sunrise_price 18000 #define tampa_price 9000 #define vincent_price 13000 #define virgo_price 14000 #define willard_price 14000 #define washington_price 14000 //////////////////////////////////////////////////////////////////////////////// #define alpha_price 30000 #define banshee_price 50000 #define blistacompact_price 30000 #define buffalo_price 40000 #define bullet_price 50000 #define cheetah_price 50000 #define club_price 25000 #define euros_price 40000 #define flash_price 25000 #define hotknife_price 40000 #define hotringracer_price 40000 #define infernus_price 60000 #define jester_price 30000 #define phoenix_price 30000 #define sabre_price 30000 #define supergt_price 50000 #define turismo_price 60000 #define uranus_price 30000 #define zr350_price 40000 //////////////////////////////////////////////////////////////////////////////// #define moonbeam_price 15000 #define perenniel_price 13000 #define regina_price 14000 #define solair_price 15000 #define stratum_price 15500 //////////////////////////////////////////////////////////////////////////////// #define bike_price2 500 #define bmx_price 500 #define mtb_price 500 //////////////////////////////////////////////////////////////////////////////// #define faggio_price 1000 #define pizzaboy_price 1000 //////////////////////////////////////////////////////////////////////////////// #define bf400_price 20000 #define nrg500_price 30000 #define pcj600_price 22500 #define fcr900_price 25000 //////////////////////////////////////////////////////////////////////////////// #define freeway_price 15000 #define wayfarer_price 20000 //////////////////////////////////////////////////////////////////////////////// #define sanchez_price 10000 #define quad_price 15000 //Colours/////////////////////////////////////////////////////////////////////// #define blue 0x375FFFFF #define red 0xFF0000AA #define green 0x33FF33AA #define yellow 0xFFFF00AA #define grey 0xC0C0C0AA #define blue1 0x2641FEAA #define lightblue 0x33CCFFAA #define orange 0xFF9900AA #define black 0x2C2727AA //Vehicle Position////////////////////////////////////////////////////////////// #define VehicleX 2204.80004883 #define VehicleY 1408.59997559 #define VehicleZ 0.500 #define VehicleAngle 90 //Menu////////////////////////////////////////////////////////////////////////// #define vehicleshop 79 #define carshop 80 #define bikeshop 81 //////////////////////////////////////////////////////////////////////////////// #define convertiblesshop 82 #define pickupsshop 83 #define minivansshop 84 #define lowridersshop 85 #define offroadcarsshop 86 #define saloonsshop 87 #define sportcarsshop 88 #define stationwagonsshop 89 //////////////////////////////////////////////////////////////////////////////// #define bicyclesshop 90 #define mopedsshop 91 #define sportbikesshop 92 #define heavybikesshop 93 #define offroadbikesshop 94 //////////////////////////////////////////////////////////////////////////////// #define cometshop 95 #define feltzershop 96 #define stallionshop 97 #define windsorshop 98 //////////////////////////////////////////////////////////////////////////////// #define bobcatshop 99 #define picadorshop 100 #define sadlershop 101 #define waltonshop 102 #define yosemiteshop 103 #define utilityvanshop 104 //////////////////////////////////////////////////////////////////////////////// #define burritoshop 105 #define ponyshop 106 #define rumposhop 107 #define campershop 108 //////////////////////////////////////////////////////////////////////////////// #define bladeshop 109 #define broadwayshop 110 #define remingtonshop 111 #define savannashop 112 #define slamvanshop 113 #define tahomashop 114 #define tornadoshop 115 #define voodooshop 116 //////////////////////////////////////////////////////////////////////////////// #define bfinjectionshop 117 #define huntleyshop 118 #define landstalkershop 119 #define mesashop 120 #define patriotshop 121 #define ranchershop 122 #define sandkingshop 123 #define tractorshop 124 //////////////////////////////////////////////////////////////////////////////// #define admiralshop 125 #define bloodringbangershop 126 #define bravurashop 127 #define buccaneershop 128 #define cadronashop 129 #define clovershop 130 #define elegantshop 131 #define elegyshop 132 #define emperorshop 133 #define esperantoshop 134 #define fortuneshop 135 #define glendaleshop 136 #define greenwoodshop 137 #define hermesshop 138 #define hustlershop 139 #define intrudershop 140 #define majesticshop 141 #define mananashop 142 #define meritshop 143 #define nebulashop 144 #define oceanicshop 145 #define premiershop 146 #define previonshop 147 #define primoshop 148 #define sentinelshop 149 #define staffordshop 150 #define sultanshop 151 #define sunriseshop 152 #define tampashop 153 #define vincentshop 154 #define virgoshop 155 #define willardshop 156 #define washingtonshop 157 //////////////////////////////////////////////////////////////////////////////// #define alphashop 158 #define bansheeshop 159 #define blistacompactshop 160 #define buffaloshop 161 #define bulletshop 162 #define cheetahshop 163 #define clubshop 164 #define eurosshop 165 #define flashshop 166 #define hotknifeshop 167 #define hotringracershop 168 #define infernusshop 169 #define jestershop 170 #define phoenixshop 171 #define sabreshop 172 #define supergtshop 173 #define turismoshop 174 #define uranusshop 175 #define zr350shop 176 //////////////////////////////////////////////////////////////////////////////// #define moonbeamshop 177 #define perennielshop 178 #define reginashop 179 #define solairshop 180 #define stratumshop 181 //////////////////////////////////////////////////////////////////////////////// #define bikeshop2 182 #define bmxshop 183 #define mtbshop 184 //////////////////////////////////////////////////////////////////////////////// #define faggioshop 185 #define pizzaboyshop 186 //////////////////////////////////////////////////////////////////////////////// #define bf400shop 187 #define nrg500shop 188 #define pcj600shop 189 #define fcr900shop 190 //////////////////////////////////////////////////////////////////////////////// #define freewayshop 191 #define wayfarershop 192 //////////////////////////////////////////////////////////////////////////////// #define sanchezshop 193 #define quadshop 194 //Objects/////////////////////////////////////////////////////////////////////// new ob[50]; //Personal Vehicle////////////////////////////////////////////////////////////// new PVeh[ MAX_PLAYERS ]; //Pickups/////////////////////////////////////////////////////////////////////// new shop, outcarshop, incarshop, garage; //Price///////////////////////////////////////////////////////////////////////// new vehicleprice[60]; //Elevator////////////////////////////////////////////////////////////////////// new elevatorarea; new nDoor, sDoor; enum elevatorinfo { DOORS_OPEN }; //new textobject; new areaINFO[elevatorinfo]; //Pickups/////////////////////////////////////////////////////////////////////// public OnFilterScriptInit() { shop = CreatePickup(1274,1,2194.8417,1396.2892,0.2797,-1); outcarshop = CreatePickup(1318,1,2200.7546,1394.1450,11.0625,-1); incarshop = CreatePickup(1318,1,2212.6245,1392.4032,00.2578,-1); GarageSpawner(); //Elevator////////////////////////////////////////////////////////////////////// areaINFO[DOORS_OPEN] = 0; elevatorarea = CreateDynamicSphere(2209.5505, 1392.5336, -0.5699,2); //Objects/////////////////////////////////////////////////////////////////////// ob[0] = CreateDynamicObject(14444, 2183.80, 1399.30, -0.90, 0.00, 0.00, 0.00); ob[1] = CreateDynamicObject(11313, 2187.10, 1408.50, 1.20, 0.00, 0.00, 180.25); ob[2] = CreateDynamicObject(6400, 2209.30, 1408.60, 7.30, 89.49, 0.00, 0.00); ob[3] = CreateDynamicObject(7191, 2187.00, 1406.40, 1.10, 0.00, 0.00, 0.00); ob[4] = CreateDynamicObject(7191, 2187.00, 1406.40, 5.00, 0.00, 0.00, 0.00); ob[5] = CreateDynamicObject(7191, 2189.70, 1404.50, 5.89, 0.00, 270.00, 89.75); ob[6] = CreateDynamicObject(7191, 2209.22, 1399.90, 5.00, 0.00, 0.00, 180.00); ob[7] = CreateDynamicObject(7191, 2190.60, 1408.40, 5.90, 0.00, 270.00, 89.75); ob[8] = CreateDynamicObject(7191, 2190.70, 1412.30, 5.90, 0.00, 270.00, 89.75); ob[9] = CreateDynamicObject(7191, 2190.40, 1413.10, 4.30, 0.00, 180.25, 90.00); ob[10] = CreateDynamicObject(7191, 2190.40, 1413.10, 0.40, 0.00, 180.25, 89.99); ob[11] = CreateDynamicObject(644, 2207.90, 1387.50, -0.40, 0.00, 0.00, 319.25); ob[12] = CreateDynamicObject(7586, 2204.80, 1408.60, -7.00, 0.00, 0.00, 0.00); ob[13] = CreateDynamicObject(644, 2208.20, 1412.20, -0.40, 0.00, 0.00, 319.25); ob[14] = CreateDynamicObject(644, 2188.20, 1412.30, -0.40, 0.00, 0.00, 319.25); ob[15] = CreateDynamicObject(2773, 2207.81, 1404.06, -0.20, 0.00, 0.00, 119.18); ob[16] = CreateDynamicObject(2773, 2206.01, 1403.58, -0.20, 0.00, 0.00, 90.25); ob[17] = CreateDynamicObject(2773, 2204.10, 1403.70, -0.20, 0.00, 0.00, 83.50); ob[18] = CreateDynamicObject(2773, 2202.40, 1404.40, -0.20, 0.00, 0.00, 50.75); ob[19] = CreateDynamicObject(2773, 2201.00, 1405.70, -0.20, 0.00, 0.00, 43.50); ob[20] = CreateDynamicObject(1514, 2193.10, 1395.40, 0.60, 0.00, 0.00, 89.00); ob[21] = CreateDynamicObject(2478, 2190.60, 1399.60, 0.60, 0.00, 0.00, 326.00); ob[22] = CreateDynamicObject(2479, 2192.00, 1399.50, 0.46, 0.00, 0.00, 0.00); ob[23] = CreateDynamicObject(2567, 2188.30, 1389.20, 1.20, 0.00, 0.00, 270.25); ob[24] = CreateDynamicObject(942, 2188.20, 1394.20, 1.70, 0.00, 0.00, 271.50); ob[25] = CreateDynamicObject(2567, 2188.20, 1399.30, 1.20, 0.00, 0.00, 270.25); ob[26] = CreateDynamicObject(644, 2188.60, 1403.30, -0.40, 0.00, 0.00, 235.25); ob[27] = CreateDynamicObject(16779, 2204.80, 1408.60, 5.80, 0.00, 0.00, 0.00); ob[28] = CreateDynamicObject(1650, 2188.70, 1394.20, 1.54, 0.00, 0.00, 0.00); ob[29] = CreateDynamicObject(1650, 2188.50, 1393.90, 1.54, 0.00, 0.00, 313.00); ob[30] = CreateDynamicObject(1650, 2188.90, 1393.80, 1.54, 0.00, 0.00, 144.99); ob[31] = CreateDynamicObject(1428, 2189.90, 1387.40, 0.80, 345.00, 0.00, 90.00); ob[32] = CreateDynamicObject(8843,2202.30004883,1421.09997559,9.82400036,0.00000000,0.00000000,90.00000000); //object(arrows01_lvs) (1) ob[33] = CreateDynamicObject(8843,2188.80004883,1408.50000000,-0.69999999,0.00000000,0.00000000,90.00000000); //object(arrows01_lvs) (5) ob[34] = CreateDynamicObject(18755, 2211.45, 1392.72, 1.16, 0.00, 0.00, 0.00); nDoor = CreateObject(18756, 2211.40, 1394.56, 1.11, 0.00, 0.00, 0.00);//North door sDoor = CreateObject(18757, 2211.40, 1390.59, 1.11, 0.00, 0.00, 0.00);//South door ob[35] = CreateDynamicObject(18645, 2191.80, 1399.03, 0.41, -0.36, -21.60, 0.00); ob[36] = CreateDynamicObject(19172, 2205.37, 1386.59, 1.64, 0.00, 0.00, 180.00); ob[37] = CreateDynamicObject(19174, 2193.16, 1386.59, 1.65, 0.00, 0.00, 180.00); ob[38] = CreateDynamicObject(19175, 2209.11, 1399.29, 1.63, 0.00, 0.00, 270.00); ob[39] = CreateDynamicObject(19131, 2209.15, 1394.41, 0.55, -90.60, -1.20, 0.00); ob[40] = CreateDynamicObject(18979, 2192.49, 1399.14, 0.41, -4.02, -29.88, 284.21); ob[41] = CreateDynamicObject(18978, 2192.23, 1398.72, 0.42, -3.18, -29.46, 297.56); ob[42] = CreateDynamicObject(19143, 2195.37, 1402.38, 5.79, 0.00, 0.00, 323.00); ob[43] = CreateDynamicObject(19143, 2203.31, 1402.30, 5.79, 0.00, 0.00, 0.00); ob[44] = CreateDynamicObject(19143, 2208.81, 1402.30, 5.79, 0.00, 0.00, 0.00); ob[45] = CreateDynamicObject(19143, 2187.35, 1402.24, 5.79, 0.00, 0.00, 0.00); ob[46] = CreateDynamicObject(19143, 2194.84, 1402.33, 5.79, 0.00, 0.00, 45.37); ob[47] = CreateDynamicObject(19143, 2199.15, 1402.30, 5.79, 0.00, 0.00, 0.00); ob[48] = CreateDynamicObject(19143, 2191.14, 1402.36, 5.79, 0.00, 0.00, 0.00); ob[49] = CreateDynamicObject(19131, 2209.14, 1390.69, 0.55, -90.60, -1.20, 0.00); //textobject = CreateObject(18660, 2187.17, 1408.56, 0.78, 0.00, 0.00, 180.00); //////////////////////////////////////////////////////////////////////////////// ConnectNPC("Shop_Staff","shopstaff"); //////////////////////////////////////////////////////////////////////////////// return print(" Vehicleshop v1.1 by fusez"); } public OnFilterScriptExit() { for(new i=0;i<38;i++) { DestroyDynamicObject(ob[i]); DestroyObject(nDoor); DestroyObject(sDoor); } DestroyPickup(shop); DestroyPickup(outcarshop); DestroyPickup(incarshop); DestroyPickup(garage); for(new i = 0; i < MAX_PLAYERS; i ++) { if(!IsPlayerNPC(i))return 1; new npcName[MAX_PLAYER_NAME]; GetPlayerName(i, npcName, sizeof(npcName)); if(!strcmp(npcName, "Shop_Staff", false)) { Kick(i); return 1; } } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) // Lookup the dialogid { case vehicleshop: { if(!response) return SetCameraBehindPlayer(playerid), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 1: ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); } } case carshop: { if(!response) return ShowPlayerDialog(playerid,vehicleshop,2,"Type","Car\nBike","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: ShowPlayerDialog(playerid,convertiblesshop,2,"Convertibles","Comet\nFeltzer\nStallion\nWindsor","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 1: ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 2: ShowPlayerDialog(playerid,minivansshop,2,"Minivans","Burrito\nPony\nRumpo\nCamper","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 3: ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 4: ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 5: ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 6: ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 7: ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); } } case bikeshop: { if(!response) return ShowPlayerDialog(playerid,vehicleshop,2,"Type","Car\nBike","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: ShowPlayerDialog(playerid,bicyclesshop,2,"Bicycles","Bike\nBMX\nMountain Bike","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 1: ShowPlayerDialog(playerid,mopedsshop,2,"Mopeds","Faggio\nPizzaboy","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 2: ShowPlayerDialog(playerid,sportbikesshop,2,"Sportbikes","BF-400\nNRG-500\nPCJ-600\nFCR-900","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 3: ShowPlayerDialog(playerid,heavybikesshop,2,"Heavy Bikes","Freeway\nWayfarer","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); case 4: ShowPlayerDialog(playerid,offroadbikesshop,2,"Offroad Bikes","Sanchez\nQuad","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0); } } case convertiblesshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",comet_price), ShowPlayerDialog(playerid,cometshop,0,"Comet",vehicleprice,"Yes","No"), CarSpawner2(playerid,480); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",feltzer_price), ShowPlayerDialog(playerid,feltzershop,0,"Feltzer",vehicleprice,"Yes","No"), CarSpawner2(playerid,533); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",stallion_price), ShowPlayerDialog(playerid,feltzershop,0,"Stallion",vehicleprice,"Yes","No"), CarSpawner2(playerid,439); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",windsor_price), ShowPlayerDialog(playerid,feltzershop,0,"Windsor",vehicleprice,"Yes","No"), CarSpawner2(playerid,555); } } case pickupsshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bobcat_price), ShowPlayerDialog(playerid,bobcatshop,0,"Bobcat",vehicleprice,"Yes","No"), CarSpawner2(playerid,422); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",picador_price), ShowPlayerDialog(playerid,picadorshop,0,"Picador",vehicleprice,"Yes","No"), CarSpawner2(playerid,600); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sadler_price), ShowPlayerDialog(playerid,sadlershop,0,"Sadler",vehicleprice,"Yes","No"), CarSpawner2(playerid,543); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",walton_price), ShowPlayerDialog(playerid,waltonshop,0,"Walton",vehicleprice,"Yes","No"), CarSpawner2(playerid,478); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",yosemite_price), ShowPlayerDialog(playerid,yosemiteshop,0,"Yosemite",vehicleprice,"Yes","No"), CarSpawner2(playerid,554); case 5: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",utilityvan_price), ShowPlayerDialog(playerid,utilityvanshop,0,"Utilityvan",vehicleprice,"Yes","No"), CarSpawner2(playerid,552); } } case minivansshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",burrito_price), ShowPlayerDialog(playerid,burritoshop,0,"Burrito",vehicleprice,"Yes","No"), CarSpawner2(playerid,482); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",pony_price), ShowPlayerDialog(playerid,ponyshop,0,"Pony",vehicleprice,"Yes","No"), CarSpawner2(playerid,413); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",rumpo_price), ShowPlayerDialog(playerid,rumposhop,0,"Rumpo",vehicleprice,"Yes","No"), CarSpawner2(playerid,440); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",camper_price), ShowPlayerDialog(playerid,campershop,0,"Camper",vehicleprice,"Yes","No"), CarSpawner2(playerid,483); } } case lowridersshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",blade_price), ShowPlayerDialog(playerid,bladeshop,0,"Blade",vehicleprice,"Yes","No"), CarSpawner2(playerid,536); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",broadway_price), ShowPlayerDialog(playerid,broadwayshop,0,"Broadway",vehicleprice,"Yes","No"), CarSpawner2(playerid,575); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",remington_price), ShowPlayerDialog(playerid,remingtonshop,0,"Remington",vehicleprice,"Yes","No"), CarSpawner2(playerid,534); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",savanna_price), ShowPlayerDialog(playerid,savannashop,0,"Savanna",vehicleprice,"Yes","No"), CarSpawner2(playerid,567); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",slamvan_price), ShowPlayerDialog(playerid,slamvanshop,0,"Slamvan",vehicleprice,"Yes","No"), CarSpawner2(playerid,535); case 5: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",tahoma_price), ShowPlayerDialog(playerid,tahomashop,0,"Tahoma",vehicleprice,"Yes","No"), CarSpawner2(playerid,566); case 6: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",tornado_price), ShowPlayerDialog(playerid,tornadoshop,0,"Tornado",vehicleprice,"Yes","No"), CarSpawner2(playerid,576); case 7: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",voodoo_price), ShowPlayerDialog(playerid,voodooshop,0,"Voodoo",vehicleprice,"Yes","No"), CarSpawner2(playerid,412); } } case offroadcarsshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bfinjection_price), ShowPlayerDialog(playerid,bfinjectionshop,0,"BF Injection",vehicleprice,"Yes","No"), CarSpawner2(playerid,424); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",huntley_price), ShowPlayerDialog(playerid,huntleyshop,0,"Huntley",vehicleprice,"Yes","No"), CarSpawner2(playerid,579); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",landstalker_price), ShowPlayerDialog(playerid,landstalkershop,0,"Landstalker",vehicleprice,"Yes","No"), CarSpawner2(playerid,400); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",mesa_price), ShowPlayerDialog(playerid,mesashop,0,"Mesa",vehicleprice,"Yes","No"), CarSpawner2(playerid,500); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",patriot_price), ShowPlayerDialog(playerid,patriotshop,0,"Patriot",vehicleprice,"Yes","No"), CarSpawner2(playerid,470); case 5: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",rancher_price), ShowPlayerDialog(playerid,ranchershop,0,"Rancher",vehicleprice,"Yes","No"), CarSpawner2(playerid,489); case 6: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sandking_price), ShowPlayerDialog(playerid,sandkingshop,0,"Sandking",vehicleprice,"Yes","No"), CarSpawner2(playerid,495); case 7: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",tractor_price), ShowPlayerDialog(playerid,tractorshop,0,"Tractor",vehicleprice,"Yes","No"), CarSpawner2(playerid,531); } } case saloonsshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",admiral_price), ShowPlayerDialog(playerid,admiralshop,0,"Admiral",vehicleprice,"Yes","No"), CarSpawner2(playerid,445); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bloodringbanger_price), ShowPlayerDialog(playerid,bloodringbangershop,0,"Bloodring Banger",vehicleprice,"Yes","No"), CarSpawner2(playerid,504); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bravura_price), ShowPlayerDialog(playerid,bravurashop,0,"Bravura",vehicleprice,"Yes","No"), CarSpawner2(playerid,401); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",buccaneer_price), ShowPlayerDialog(playerid,buccaneershop,0,"Buccaneer",vehicleprice,"Yes","No"), CarSpawner2(playerid,518); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",cadrona_price), ShowPlayerDialog(playerid,cadronashop,0,"Cadrona",vehicleprice,"Yes","No"), CarSpawner2(playerid,527); case 5: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",clover_price), ShowPlayerDialog(playerid,clovershop,0,"Clover",vehicleprice,"Yes","No"), CarSpawner2(playerid,542); case 6: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",elegant_price), ShowPlayerDialog(playerid,elegantshop,0,"Elegant",vehicleprice,"Yes","No"), CarSpawner2(playerid,507); case 7: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",elegy_price), ShowPlayerDialog(playerid,elegyshop,0,"Elegy",vehicleprice,"Yes","No"), CarSpawner2(playerid,562); case 8: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",emperor_price), ShowPlayerDialog(playerid,emperorshop,0,"Emperor",vehicleprice,"Yes","No"), CarSpawner2(playerid,585); case 9: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",esperanto_price), ShowPlayerDialog(playerid,esperantoshop,0,"Esperanto",vehicleprice,"Yes","No"), CarSpawner2(playerid,419); case 10: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",fortune_price), ShowPlayerDialog(playerid,fortuneshop,0,"Fortune",vehicleprice,"Yes","No"), CarSpawner2(playerid,526); case 11: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",glendale_price), ShowPlayerDialog(playerid,glendaleshop,0,"Glendale",vehicleprice,"Yes","No"), CarSpawner2(playerid,466); case 12: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",greenwood_price), ShowPlayerDialog(playerid,greenwoodshop,0,"Greenwood",vehicleprice,"Yes","No"), CarSpawner2(playerid,492); case 13: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",hermes_price), ShowPlayerDialog(playerid,hermesshop,0,"Hermes",vehicleprice,"Yes","No"), CarSpawner2(playerid,474); case 14: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",hustler_price), ShowPlayerDialog(playerid,hustlershop,0,"Hustler",vehicleprice,"Yes","No"), CarSpawner2(playerid,545); case 15: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",intruder_price), ShowPlayerDialog(playerid,intrudershop,0,"Intruder",vehicleprice,"Yes","No"), CarSpawner2(playerid,546); case 16: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",majestic_price), ShowPlayerDialog(playerid,majesticshop,0,"Majestic",vehicleprice,"Yes","No"), CarSpawner2(playerid,517); case 17: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",manana_price), ShowPlayerDialog(playerid,mananashop,0,"Manana",vehicleprice,"Yes","No"), CarSpawner2(playerid,410); case 18: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",merit_price), ShowPlayerDialog(playerid,meritshop,0,"Merit",vehicleprice,"Yes","No"), CarSpawner2(playerid,551); case 19: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",nebula_price), ShowPlayerDialog(playerid,nebulashop,0,"Nebula",vehicleprice,"Yes","No"), CarSpawner2(playerid,516); case 20: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",oceanic_price), ShowPlayerDialog(playerid,oceanicshop,0,"Oceanic",vehicleprice,"Yes","No"), CarSpawner2(playerid,467); case 21: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",premier_price), ShowPlayerDialog(playerid,premiershop,0,"Premier",vehicleprice,"Yes","No"), CarSpawner2(playerid,426); case 22: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",previon_price), ShowPlayerDialog(playerid,previonshop,0,"Previon",vehicleprice,"Yes","No"), CarSpawner2(playerid,436); case 23: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",primo_price), ShowPlayerDialog(playerid,primoshop,0,"Primo",vehicleprice,"Yes","No"), CarSpawner2(playerid,547); case 24: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sentinel_price), ShowPlayerDialog(playerid,sentinelshop,0,"Sentinel",vehicleprice,"Yes","No"), CarSpawner2(playerid,405); case 25: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",stafford_price), ShowPlayerDialog(playerid,staffordshop,0,"Stafford",vehicleprice,"Yes","No"), CarSpawner2(playerid,580); case 26: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sultan_price), ShowPlayerDialog(playerid,sultanshop,0,"Sultan",vehicleprice,"Yes","No"), CarSpawner2(playerid,560); case 27: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sunrise_price), ShowPlayerDialog(playerid,sunriseshop,0,"Sunrise",vehicleprice,"Yes","No"), CarSpawner2(playerid,550); case 28: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",tampa_price), ShowPlayerDialog(playerid,tampashop,0,"Tampa",vehicleprice,"Yes","No"), CarSpawner2(playerid,549); case 29: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",vincent_price), ShowPlayerDialog(playerid,vincentshop,0,"Vincent",vehicleprice,"Yes","No"), CarSpawner2(playerid,540); case 30: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",virgo_price), ShowPlayerDialog(playerid,virgoshop,0,"Virgo",vehicleprice,"Yes","No"), CarSpawner2(playerid,491); case 31: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",willard_price), ShowPlayerDialog(playerid,willardshop,0,"Willard",vehicleprice,"Yes","No"), CarSpawner2(playerid,529); case 32: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",washington_price), ShowPlayerDialog(playerid,washingtonshop,0,"Washington",vehicleprice,"Yes","No"), CarSpawner2(playerid,421); } } case sportcarsshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",alpha_price), ShowPlayerDialog(playerid,alphashop,0,"Alpha",vehicleprice,"Yes","No"), CarSpawner2(playerid,602); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",banshee_price), ShowPlayerDialog(playerid,bansheeshop,0,"Banshee",vehicleprice,"Yes","No"), CarSpawner2(playerid,429); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",blistacompact_price), ShowPlayerDialog(playerid,blistacompactshop,0,"Blista Compact",vehicleprice,"Yes","No"), CarSpawner2(playerid,496); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",buffalo_price), ShowPlayerDialog(playerid,buffaloshop,0,"Buffalo",vehicleprice,"Yes","No"), CarSpawner2(playerid,402); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bullet_price), ShowPlayerDialog(playerid,bulletshop,0,"Bullet",vehicleprice,"Yes","No"), CarSpawner2(playerid,541); case 5: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",cheetah_price), ShowPlayerDialog(playerid,cheetahshop,0,"Cheetah",vehicleprice,"Yes","No"), CarSpawner2(playerid,415); case 6: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",club_price), ShowPlayerDialog(playerid,clubshop,0,"Club",vehicleprice,"Yes","No"), CarSpawner2(playerid,589); case 7: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",euros_price), ShowPlayerDialog(playerid,eurosshop,0,"Euros",vehicleprice,"Yes","No"), CarSpawner2(playerid,587); case 8: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",flash_price), ShowPlayerDialog(playerid,flashshop,0,"Flash",vehicleprice,"Yes","No"), CarSpawner2(playerid,565); case 9: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",hotknife_price), ShowPlayerDialog(playerid,hotknifeshop,0,"Hotknife",vehicleprice,"Yes","No"), CarSpawner2(playerid,434); case 10: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",hotringracer_price), ShowPlayerDialog(playerid,hotringracershop,0,"Hotring Racer",vehicleprice,"Yes","No"), CarSpawner2(playerid,494); case 11: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",infernus_price), ShowPlayerDialog(playerid,infernusshop,0,"Infernus",vehicleprice,"Yes","No"), CarSpawner2(playerid,411); case 12: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",jester_price), ShowPlayerDialog(playerid,jestershop,0,"Jester",vehicleprice,"Yes","No"), CarSpawner2(playerid,559); case 13: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",phoenix_price), ShowPlayerDialog(playerid,phoenixshop,0,"Phoenix",vehicleprice,"Yes","No"), CarSpawner2(playerid,603); case 14: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sabre_price), ShowPlayerDialog(playerid,sabreshop,0,"Sabre",vehicleprice,"Yes","No"), CarSpawner2(playerid,475); case 15: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",supergt_price), ShowPlayerDialog(playerid,supergtshop,0,"Super GT",vehicleprice,"Yes","No"), CarSpawner2(playerid,506); case 16: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",turismo_price), ShowPlayerDialog(playerid,turismoshop,0,"Turismo",vehicleprice,"Yes","No"), CarSpawner2(playerid,451); case 17: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",uranus_price), ShowPlayerDialog(playerid,uranusshop,0,"Uranus",vehicleprice,"Yes","No"), CarSpawner2(playerid,558); case 18: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",zr350_price), ShowPlayerDialog(playerid,zr350shop,0,"ZR-350",vehicleprice,"Yes","No"), CarSpawner2(playerid,477); } } case stationwagonsshop: { if(!response) return ShowPlayerDialog(playerid,carshop,2,"Car Class","Convertibles\nPickups\nMinivans\nLowriders\nOffroad\nSaloons\nSportcars\nStation Wagons","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",moonbeam_price), ShowPlayerDialog(playerid,moonbeamshop,0,"Moonbeam",vehicleprice,"Yes","No"), CarSpawner2(playerid,418); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",perenniel_price), ShowPlayerDialog(playerid,perennielshop,0,"Perenniel",vehicleprice,"Yes","No"), CarSpawner2(playerid,404); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",regina_price), ShowPlayerDialog(playerid,reginashop,0,"Regina",vehicleprice,"Yes","No"), CarSpawner2(playerid,479); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",solair_price), ShowPlayerDialog(playerid,solairshop,0,"Solair",vehicleprice,"Yes","No"), CarSpawner2(playerid,458); case 4: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",stratum_price), ShowPlayerDialog(playerid,stratumshop,0,"Stratum",vehicleprice,"Yes","No"), CarSpawner2(playerid,561); } } case bicyclesshop: { if(!response) return ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bike_price2), ShowPlayerDialog(playerid,bikeshop2,0,"Bike",vehicleprice,"Yes","No"), CarSpawner2(playerid,509); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bmx_price), ShowPlayerDialog(playerid,bmxshop,0,"BMX",vehicleprice,"Yes","No"), CarSpawner2(playerid,481); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",mtb_price), ShowPlayerDialog(playerid,mtbshop,0,"MTB",vehicleprice,"Yes","No"), CarSpawner2(playerid,510); } } case mopedsshop: { if(!response) return ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",faggio_price), ShowPlayerDialog(playerid,faggioshop,0,"Faggio",vehicleprice,"Yes","No"), CarSpawner2(playerid,462); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",pizzaboy_price), ShowPlayerDialog(playerid,pizzaboyshop,0,"Pizzaboy",vehicleprice,"Yes","No"), CarSpawner2(playerid,448); } } case sportbikesshop: { if(!response) return ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",bf400_price), ShowPlayerDialog(playerid,bf400shop,0,"BF-400",vehicleprice,"Yes","No"), CarSpawner2(playerid,581); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",nrg500_price), ShowPlayerDialog(playerid,nrg500shop,0,"NRG-500",vehicleprice,"Yes","No"), CarSpawner2(playerid,522); case 2: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",pcj600_price), ShowPlayerDialog(playerid,pcj600shop,0,"PCJ-600",vehicleprice,"Yes","No"), CarSpawner2(playerid,461); case 3: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",fcr900_price), ShowPlayerDialog(playerid,fcr900shop,0,"FCR-900",vehicleprice,"Yes","No"), CarSpawner2(playerid,521); } } case heavybikesshop: { if(!response) return ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",freeway_price), ShowPlayerDialog(playerid,freewayshop,0,"Freeway",vehicleprice,"Yes","No"), CarSpawner2(playerid,463); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",wayfarer_price), ShowPlayerDialog(playerid,wayfarershop,0,"Wayfarer",vehicleprice,"Yes","No"), CarSpawner2(playerid,586); } } case offroadbikesshop: { if(!response) return ShowPlayerDialog(playerid,bikeshop,2,"Bike Class","Bicycles\nMopeds\nSportbikes\nHeavy Bikes\nOffroad Bikes","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0); switch(listitem) { case 0: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",sanchez_price), ShowPlayerDialog(playerid,sanchezshop,0,"Sanchez",vehicleprice,"Yes","No"), CarSpawner2(playerid,468); case 1: format(vehicleprice,sizeof(vehicleprice),"Do you want to buy this vehicle for \n$%i ?",quad_price), ShowPlayerDialog(playerid,quadshop,0,"Quad",vehicleprice,"Yes","No"), CarSpawner2(playerid,471); } } //convertibles case cometshop: { if(!response) ShowPlayerDialog(playerid,convertiblesshop,2,"Convertibles","Comet\nFeltzer\nStallion\nWindsor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= comet_price) GivePlayerMoney(playerid,-comet_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < comet_price) ShowPlayerDialog(playerid,cometshop,0,"Comet",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case feltzershop: { if(!response) ShowPlayerDialog(playerid,convertiblesshop,2,"Convertibles","Comet\nFeltzer\nStallion\nWindsor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= feltzer_price) GivePlayerMoney(playerid,- feltzer_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < feltzer_price) ShowPlayerDialog(playerid,feltzershop,0,"Feltzer",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case stallionshop: { if(!response) ShowPlayerDialog(playerid,convertiblesshop,2,"Convertibles","Comet\nFeltzer\nStallion\nWindsor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= stallion_price) GivePlayerMoney(playerid,- stallion_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < stallion_price) ShowPlayerDialog(playerid,stallionshop,0,"Stallion",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case windsorshop: { if(!response) ShowPlayerDialog(playerid,convertiblesshop,2,"Convertibles","Comet\nFeltzer\nStallion\nWindsor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); if(GetPlayerMoney(playerid) >= windsor_price) GivePlayerMoney(playerid,- windsor_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < windsor_price) ShowPlayerDialog(playerid,windsorshop,0,"Windsor",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Pickups case bobcatshop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bobcat_price) GivePlayerMoney(playerid,-bobcat_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bobcat_price) ShowPlayerDialog(playerid,bobcatshop,0,"Bobcat",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case picadorshop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= picador_price) GivePlayerMoney(playerid,- picador_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < picador_price) ShowPlayerDialog(playerid,picadorshop,0,"Picador",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sadlershop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sadler_price) GivePlayerMoney(playerid,- sadler_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sadler_price) ShowPlayerDialog(playerid,sadlershop,0,"Sadler",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case waltonshop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= walton_price) GivePlayerMoney(playerid,- walton_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < walton_price) ShowPlayerDialog(playerid,waltonshop,0,"Windsor",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case yosemiteshop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= yosemite_price) GivePlayerMoney(playerid,- yosemite_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < yosemite_price) ShowPlayerDialog(playerid,yosemiteshop,0,"Yosemite",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case utilityvanshop: { if(!response) ShowPlayerDialog(playerid,pickupsshop,2,"Pickups","Bobcat\nPicador\nSadler\nWalton\nYosemite\nUtilityvan","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= utilityvan_price) GivePlayerMoney(playerid,- utilityvan_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < utilityvan_price) ShowPlayerDialog(playerid,utilityvanshop,0,"Utilityvan",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Minivans case burritoshop: { if(!response) ShowPlayerDialog(playerid,minivansshop,2,"Minivans","Burrito\nPony\nRumpo\nCamper\n","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= burrito_price) GivePlayerMoney(playerid,-burrito_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < burrito_price) ShowPlayerDialog(playerid,burritoshop,0,"Burrito",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case ponyshop: { if(!response) ShowPlayerDialog(playerid,minivansshop,2,"Minivans","Burrito\nPony\nRumpo\nCamper\n","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= pony_price) GivePlayerMoney(playerid,- pony_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < pony_price) ShowPlayerDialog(playerid,ponyshop,0,"Pony",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case rumposhop: { if(!response) ShowPlayerDialog(playerid,minivansshop,2,"Minivans","Burrito\nPony\nRumpo\nCamper\n","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= rumpo_price) GivePlayerMoney(playerid,- rumpo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < rumpo_price) ShowPlayerDialog(playerid,rumposhop,0,"Rumpo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case campershop: { if(!response) ShowPlayerDialog(playerid,minivansshop,2,"Minivans","Burrito\nPony\nRumpo\nCamper\n","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= camper_price) GivePlayerMoney(playerid,- camper_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < camper_price) ShowPlayerDialog(playerid,campershop,0,"Camper",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Lowriders case bladeshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= blade_price) GivePlayerMoney(playerid,-blade_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < blade_price) ShowPlayerDialog(playerid,bladeshop,0,"Blade",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case broadwayshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= broadway_price) GivePlayerMoney(playerid,- broadway_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < broadway_price) ShowPlayerDialog(playerid,broadwayshop,0,"Broadway",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case remingtonshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= remington_price) GivePlayerMoney(playerid,- remington_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < remington_price) ShowPlayerDialog(playerid,remingtonshop,0,"Remington",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case savannashop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= savanna_price) GivePlayerMoney(playerid,- savanna_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < savanna_price) ShowPlayerDialog(playerid,savannashop,0,"Savanna",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case slamvanshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= slamvan_price) GivePlayerMoney(playerid,- slamvan_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < slamvan_price) ShowPlayerDialog(playerid,slamvanshop,0,"Slamvan",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case tahomashop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= tahoma_price) GivePlayerMoney(playerid,- tahoma_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < tahoma_price) ShowPlayerDialog(playerid,tahomashop,0,"Tahoma",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case tornadoshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= tornado_price) GivePlayerMoney(playerid,- tornado_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < tornado_price) ShowPlayerDialog(playerid,tornadoshop,0,"Tornado",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case voodooshop: { if(!response) ShowPlayerDialog(playerid,lowridersshop,2,"Lowriders","Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTahoma\nTornado\nVoodoo","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= voodoo_price) GivePlayerMoney(playerid,- voodoo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < voodoo_price) ShowPlayerDialog(playerid,voodooshop,0,"Voodoo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Offroad cars case bfinjectionshop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bfinjection_price) GivePlayerMoney(playerid,-bfinjection_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bfinjection_price) ShowPlayerDialog(playerid,bfinjectionshop,0,"BF Injection",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case huntleyshop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= huntley_price) GivePlayerMoney(playerid,- huntley_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < huntley_price) ShowPlayerDialog(playerid,huntleyshop,0,"Huntley",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case landstalkershop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= landstalker_price) GivePlayerMoney(playerid,- landstalker_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < landstalker_price) ShowPlayerDialog(playerid,landstalkershop,0,"Landstalker",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case mesashop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= mesa_price) GivePlayerMoney(playerid,- mesa_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < mesa_price) ShowPlayerDialog(playerid,mesashop,0,"Mesa",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case patriotshop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= patriot_price) GivePlayerMoney(playerid,- patriot_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < patriot_price) ShowPlayerDialog(playerid,patriotshop,0,"Patriot",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case ranchershop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= rancher_price) GivePlayerMoney(playerid,- rancher_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < rancher_price) ShowPlayerDialog(playerid,ranchershop,0,"Rancher",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sandkingshop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sandking_price) GivePlayerMoney(playerid,- sandking_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sandking_price) ShowPlayerDialog(playerid,sandkingshop,0,"Sandking",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case tractorshop: { if(!response) ShowPlayerDialog(playerid,offroadcarsshop,2,"Offroad","BF Injection\nHuntley\nLandstalker\nMesa\nPatriot\nRancher\nSandking\nTractor","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= tractor_price) GivePlayerMoney(playerid,- tractor_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < tractor_price) ShowPlayerDialog(playerid,tractorshop,0,"Tractor",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Saloons case admiralshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= admiral_price) GivePlayerMoney(playerid,-admiral_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < admiral_price) ShowPlayerDialog(playerid,admiralshop,0,"Admiral",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case bloodringbangershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bloodringbanger_price) GivePlayerMoney(playerid,-bloodringbanger_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bloodringbanger_price) ShowPlayerDialog(playerid,bloodringbangershop,0,"Bloodring Banger",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case bravurashop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bravura_price) GivePlayerMoney(playerid,-bravura_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bravura_price) ShowPlayerDialog(playerid,bravurashop,0,"Bravura",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case buccaneershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= buccaneer_price) GivePlayerMoney(playerid,-buccaneer_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < buccaneer_price) ShowPlayerDialog(playerid,buccaneershop,0,"Buccaneer",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case cadronashop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= cadrona_price) GivePlayerMoney(playerid,-cadrona_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < cadrona_price) ShowPlayerDialog(playerid,cadronashop,0,"Cadrona",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case clovershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= clover_price) GivePlayerMoney(playerid,-clover_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < clover_price) ShowPlayerDialog(playerid,clovershop,0,"Clover",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case elegantshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= elegant_price) GivePlayerMoney(playerid,-elegant_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < elegant_price) ShowPlayerDialog(playerid,elegantshop,0,"Elegant",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case elegyshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= elegy_price) GivePlayerMoney(playerid,-elegy_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < elegy_price) ShowPlayerDialog(playerid,elegyshop,0,"Elegy",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case emperorshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= emperor_price) GivePlayerMoney(playerid,-emperor_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < emperor_price) ShowPlayerDialog(playerid,emperorshop,0,"Emperor",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case esperantoshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= esperanto_price) GivePlayerMoney(playerid,-esperanto_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < esperanto_price) ShowPlayerDialog(playerid,esperantoshop,0,"Esperanto",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case fortuneshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= fortune_price) GivePlayerMoney(playerid,-fortune_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < fortune_price) ShowPlayerDialog(playerid,fortuneshop,0,"Fortune",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case glendaleshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= glendale_price) GivePlayerMoney(playerid,-glendale_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < glendale_price) ShowPlayerDialog(playerid,glendaleshop,0,"Glendale",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case greenwoodshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= greenwood_price) GivePlayerMoney(playerid,-greenwood_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < greenwood_price) ShowPlayerDialog(playerid,greenwoodshop,0,"Greenwood",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case hermesshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= hermes_price) GivePlayerMoney(playerid,-hermes_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < hermes_price) ShowPlayerDialog(playerid,hermesshop,0,"Hermes",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case hustlershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= hustler_price) GivePlayerMoney(playerid,-hustler_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < hustler_price) ShowPlayerDialog(playerid,hustlershop,0,"Hustler",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case intrudershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= intruder_price) GivePlayerMoney(playerid,-intruder_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < intruder_price) ShowPlayerDialog(playerid,intrudershop,0,"Intruder",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case majesticshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= majestic_price) GivePlayerMoney(playerid,-majestic_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < majestic_price) ShowPlayerDialog(playerid,majesticshop,0,"Majestic",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case mananashop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= manana_price) GivePlayerMoney(playerid,-manana_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < manana_price) ShowPlayerDialog(playerid,mananashop,0,"Manana",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case meritshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= merit_price) GivePlayerMoney(playerid,-merit_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < merit_price) ShowPlayerDialog(playerid,meritshop,0,"Merit",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case nebulashop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= nebula_price) GivePlayerMoney(playerid,-nebula_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < nebula_price) ShowPlayerDialog(playerid,nebulashop,0,"Nebula",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case oceanicshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= oceanic_price) GivePlayerMoney(playerid,-oceanic_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < oceanic_price) ShowPlayerDialog(playerid,oceanicshop,0,"Oceanic",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case premiershop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= premier_price) GivePlayerMoney(playerid,-premier_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < premier_price) ShowPlayerDialog(playerid,premiershop,0,"Premier",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case previonshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= previon_price) GivePlayerMoney(playerid,-previon_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < previon_price) ShowPlayerDialog(playerid,previonshop,0,"Previon",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case primoshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= primo_price) GivePlayerMoney(playerid,-primo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < primo_price) ShowPlayerDialog(playerid,primoshop,0,"Primo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sentinelshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sentinel_price) GivePlayerMoney(playerid,-sentinel_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sentinel_price) ShowPlayerDialog(playerid,sentinelshop,0,"Sentinel",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case staffordshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= stafford_price) GivePlayerMoney(playerid,-stafford_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < stafford_price) ShowPlayerDialog(playerid,staffordshop,0,"Stafford",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sultanshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sultan_price) GivePlayerMoney(playerid,-sultan_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sultan_price) ShowPlayerDialog(playerid,sultanshop,0,"Sultan",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sunriseshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sunrise_price) GivePlayerMoney(playerid,-sunrise_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sunrise_price) ShowPlayerDialog(playerid,sunriseshop,0,"Sunrise",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case tampashop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= tampa_price) GivePlayerMoney(playerid,-tampa_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < tampa_price) ShowPlayerDialog(playerid,tampashop,0,"Tampa",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case vincentshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= vincent_price) GivePlayerMoney(playerid,-vincent_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < vincent_price) ShowPlayerDialog(playerid,vincentshop,0,"Vincent",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case virgoshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= virgo_price) GivePlayerMoney(playerid,-virgo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < virgo_price) ShowPlayerDialog(playerid,virgoshop,0,"Virgo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case willardshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= willard_price) GivePlayerMoney(playerid,-willard_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < willard_price) ShowPlayerDialog(playerid,willardshop,0,"Willard",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case washingtonshop: { if(!response) ShowPlayerDialog(playerid,saloonsshop,2,"Saloons","Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale\nGreenwood\nHermes\nHustler\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= washington_price) GivePlayerMoney(playerid,-washington_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < washington_price) ShowPlayerDialog(playerid,washingtonshop,0,"Washington",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Sportcars case alphashop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= alpha_price) GivePlayerMoney(playerid,-alpha_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < alpha_price) ShowPlayerDialog(playerid,alphashop,0,"Alpha",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case bansheeshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= banshee_price) GivePlayerMoney(playerid,-banshee_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < banshee_price) ShowPlayerDialog(playerid,bansheeshop,0,"Banshee",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case blistacompactshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= blistacompact_price) GivePlayerMoney(playerid,-blistacompact_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < blistacompact_price) ShowPlayerDialog(playerid,blistacompactshop,0,"Blista Compact",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case buffaloshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= buffalo_price) GivePlayerMoney(playerid,-buffalo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < buffalo_price) ShowPlayerDialog(playerid,buffaloshop,0,"Buffalo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case cheetahshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= cheetah_price) GivePlayerMoney(playerid,-cheetah_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < cheetah_price) ShowPlayerDialog(playerid,cheetahshop,0,"Cheetah",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case clubshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= club_price) GivePlayerMoney(playerid,-club_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < club_price) ShowPlayerDialog(playerid,clubshop,0,"Club",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case eurosshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= euros_price) GivePlayerMoney(playerid,-euros_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < euros_price) ShowPlayerDialog(playerid,eurosshop,0,"Euros",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case flashshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= flash_price) GivePlayerMoney(playerid,-flash_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < flash_price) ShowPlayerDialog(playerid,flashshop,0,"Flash",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case hotknifeshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= hotknife_price) GivePlayerMoney(playerid,-hotknife_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < hotknife_price) ShowPlayerDialog(playerid,hotknifeshop,0,"Hotknife",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case hotringracershop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= hotringracer_price) GivePlayerMoney(playerid,-hotringracer_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < hotringracer_price) ShowPlayerDialog(playerid,hotringracershop,0,"Hotring Racer",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case infernusshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= infernus_price) GivePlayerMoney(playerid,-infernus_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < infernus_price) ShowPlayerDialog(playerid,infernusshop,0,"Infernus",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case jestershop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= jester_price) GivePlayerMoney(playerid,-jester_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < jester_price) ShowPlayerDialog(playerid,jestershop,0,"Jester",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case phoenixshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= phoenix_price) GivePlayerMoney(playerid,-phoenix_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < phoenix_price) ShowPlayerDialog(playerid,phoenixshop,0,"Phoenix",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case sabreshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sabre_price) GivePlayerMoney(playerid,-sabre_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sabre_price) ShowPlayerDialog(playerid,sabreshop,0,"Sabre",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case supergtshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= supergt_price) GivePlayerMoney(playerid,-supergt_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < supergt_price) ShowPlayerDialog(playerid,supergtshop,0,"Super GT",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case turismoshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= turismo_price) GivePlayerMoney(playerid,-turismo_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < turismo_price) ShowPlayerDialog(playerid,turismoshop,0,"Turismo",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case uranusshop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= uranus_price) GivePlayerMoney(playerid,-uranus_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < uranus_price) ShowPlayerDialog(playerid,uranusshop,0,"Uranus",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case zr350shop: { if(!response) ShowPlayerDialog(playerid,sportcarsshop,2,"Sportcars","Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotknife\nHotring Racer\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= zr350_price) GivePlayerMoney(playerid,-zr350_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < zr350_price) ShowPlayerDialog(playerid,zr350shop,0,"ZR-350",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //station wagons case moonbeamshop: { if(!response) ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= moonbeam_price) GivePlayerMoney(playerid,-moonbeam_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < moonbeam_price) ShowPlayerDialog(playerid,moonbeamshop,0,"Moonbeam",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case perennielshop: { if(!response) ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= perenniel_price) GivePlayerMoney(playerid,-perenniel_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < perenniel_price) ShowPlayerDialog(playerid,perennielshop,0,"Perenniel",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case reginashop: { if(!response) ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= regina_price) GivePlayerMoney(playerid,-regina_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < regina_price) ShowPlayerDialog(playerid,reginashop,0,"Regina",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case solairshop: { if(!response) ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= solair_price) GivePlayerMoney(playerid,-solair_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < solair_price) ShowPlayerDialog(playerid,solairshop,0,"Solair",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case stratumshop: { if(!response) ShowPlayerDialog(playerid,stationwagonsshop,2,"Station Wagons","Moonbeam\nPerenniel\nRegina\nSolair\nStratum","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= stratum_price) GivePlayerMoney(playerid,-stratum_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < stratum_price) ShowPlayerDialog(playerid,stratumshop,0,"Stratum",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Bikes //Bicycles case bikeshop2: { if(!response) ShowPlayerDialog(playerid,bicyclesshop,2,"Bicycles","Bike\nBMX\nMountain Bike","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bike_price2) GivePlayerMoney(playerid,-bike_price2), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bike_price2) ShowPlayerDialog(playerid,bikeshop,0,"Bike",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case bmxshop: { if(!response) ShowPlayerDialog(playerid,bicyclesshop,2,"Bicycles","Bike\nBMX\nMountain Bike","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bmx_price) GivePlayerMoney(playerid,-bmx_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bmx_price) ShowPlayerDialog(playerid,bmxshop,0,"BMX",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case mtbshop: { if(!response) ShowPlayerDialog(playerid,bicyclesshop,2,"Bicycles","Bike\nBMX\nMountain Bike","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= mtb_price) GivePlayerMoney(playerid,-mtb_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < mtb_price) ShowPlayerDialog(playerid,mtbshop,0,"MTB",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Mopeds case faggioshop: { if(!response) ShowPlayerDialog(playerid,mopedsshop,2,"Mopeds","Faggio\nPizzaboy","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= faggio_price) GivePlayerMoney(playerid,-faggio_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < faggio_price) ShowPlayerDialog(playerid,faggioshop,0,"Faggio",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case pizzaboyshop: { if(!response) ShowPlayerDialog(playerid,mopedsshop,2,"Mopeds","Faggio\nPizzaboy","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= pizzaboy_price) GivePlayerMoney(playerid,-pizzaboy_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < pizzaboy_price) ShowPlayerDialog(playerid,pizzaboyshop,0,"Pizzaboy",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Sportbikes case bf400shop: { if(!response) ShowPlayerDialog(playerid,sportbikesshop,2,"Sportbikes","BF-400\nNRG-500\nPCJ-600\nFCR-900","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= bf400_price) GivePlayerMoney(playerid,-bf400_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < bf400_price) ShowPlayerDialog(playerid,bf400shop,0,"BF-400",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case nrg500shop: { if(!response) ShowPlayerDialog(playerid,sportbikesshop,2,"Sportbikes","BF-400\nNRG-500\nPCJ-600\nFCR-900","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= nrg500_price) GivePlayerMoney(playerid,-nrg500_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < nrg500_price) ShowPlayerDialog(playerid,nrg500shop,0,"NRG-500",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case pcj600shop: { if(!response) ShowPlayerDialog(playerid,sportbikesshop,2,"Sportbikes","BF-400\nNRG-500\nPCJ-600\nFCR-900","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= pcj600_price) GivePlayerMoney(playerid,-pcj600_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < pcj600_price) ShowPlayerDialog(playerid,pcj600shop,0,"PCJ-600",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case fcr900shop: { if(!response) ShowPlayerDialog(playerid,sportbikesshop,2,"Sportbikes","BF-400\nNRG-500\nPCJ-600\nFCR-900","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= fcr900_price) GivePlayerMoney(playerid,-fcr900_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < fcr900_price) ShowPlayerDialog(playerid,fcr900shop,0,"FCR-900",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Heavy bikes case freewayshop: { if(!response) ShowPlayerDialog(playerid,heavybikesshop,2,"Heavy Bikes","Freeway\nWayfarer","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= freeway_price) GivePlayerMoney(playerid,-freeway_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < freeway_price) ShowPlayerDialog(playerid,freewayshop,0,"Freeway",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case wayfarershop: { if(!response) ShowPlayerDialog(playerid,heavybikesshop,2,"Heavy Bikes","Freeway\nWayfarer","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= wayfarer_price) GivePlayerMoney(playerid,-wayfarer_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < wayfarer_price) ShowPlayerDialog(playerid,wayfarershop,0,"Wayfarer",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } //Offroad case sanchezshop: { if(!response) ShowPlayerDialog(playerid,offroadbikesshop,2,"Offroad Bikes","Sanchez\nQuad","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= sanchez_price) GivePlayerMoney(playerid,-sanchez_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < sanchez_price) ShowPlayerDialog(playerid,sanchezshop,0,"Sanchez",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } case quadshop: { if(!response) ShowPlayerDialog(playerid,offroadbikesshop,2,"Offroad Bikes","Sanchez\nQuad","OK","Back"), PlayerPlaySound(playerid, 1084, 0, 0, 0), destroypveh(playerid); else if(GetPlayerMoney(playerid) >= quad_price) GivePlayerMoney(playerid,-quad_price), PlayerPlaySound(playerid, 1054, 0 ,0, 0), SetCameraBehindPlayer(playerid); else if(GetPlayerMoney(playerid) < quad_price) ShowPlayerDialog(playerid,quadshop,0,"Quad",vehicleprice,"Yes","No"), SendClientMessage(playerid,red,"You don't have enough money"), PlayerPlaySound(playerid, 1055, 0, 0, 0); } } return 1; } //Private Car/////////////////////////////////////////////////////////////////// forward CarSpawner2(playerid,model); public CarSpawner2(playerid,model) { PlayerPlaySound(playerid, 1083, 0, 0, 0); destroypveh(playerid); new colour1, colour2; colour1 = random(126); colour2 = random(126); PVeh[playerid] = CreateVehicle(model, VehicleX, VehicleY, VehicleZ, VehicleAngle, colour1, colour2, -1); new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s", name); SetVehicleNumberPlate(PVeh[playerid], string); SetVehicleToRespawn(PVeh[playerid]); } forward destroypveh(playerid); public destroypveh(playerid) if(PVeh[playerid] != -1) DestroyVehicle(PVeh[playerid]); public OnPlayerConnect(playerid) { RemoveBuildingForPlayer(playerid, 8840, 2162.7891, 1401.4141, 14.3750, 0.25); RemoveBuildingForPlayer(playerid, 1344, 2178.2188, 1418.8438, 10.6250, 0.25); RemoveBuildingForPlayer(playerid, 1344, 2181.5625, 1418.8438, 10.6250, 0.25); PVeh[playerid] = -1; return 1; } public OnPlayerDisconnect(playerid, reason) return PVeh[playerid] = -1; //Pickups/////////////////////////////////////////////////////////////////////// forward GarageSpawner(); public GarageSpawner(){ return garage = CreatePickup(1318,14,2188.1174,1409.3684,0.2797,-1); } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == incarshop) { SetPlayerPos(playerid,2201.0718,1391.3253,10.8203); SetPlayerFacingAngle(playerid,180); SetCameraBehindPlayer(playerid); return 1; } if(pickupid == outcarshop) { SetPlayerPos(playerid,2210.1245,1392.5115,0.2578); SetPlayerFacingAngle(playerid,90); SetCameraBehindPlayer(playerid); return 1; } if(pickupid == shop) { SetPlayerPos(playerid,2194.8417,1394.2892,0.2797); new Float:x, Float:y, Float:z; GetPlayerCameraPos(playerid, x, y, z); SetPlayerFacingAngle(playerid,90); InterpolateCameraPos(playerid,x,y,z,2199.1238,1404.3313,1.0000,1000,CAMERA_MOVE); InterpolateCameraLookAt(playerid,2194.8417,1394.2892,0.2797,VehicleX,VehicleY,VehicleZ,1000,CAMERA_MOVE); ShowPlayerDialog(playerid,vehicleshop,2,"Type","Car\nBike","OK","Cancel"); return 1; } if(pickupid == garage) { DestroyPickup(garage); SetTimer("GarageSpawner",500,0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetPlayerPos (playerid, 2217.69995117,1421.00000000,10.80000019); SetVehiclePos(GetPlayerVehicleID(playerid), 2217.69995117,1421.00000000,10.80000019); PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid), 0); SetVehicleZAngle(GetPlayerVehicleID(playerid),90); SetCameraBehindPlayer(playerid); return 1; } } return 0; } public OnPlayerSpawn(playerid) { if(!IsPlayerNPC(playerid)) return 1; new playername[25]; GetPlayerName(playerid,playername,25); SetPlayerColor(playerid,0xFFFFFF00); if(!strcmp(playername,"Shop_Staff",true)) { SetPlayerPos(playerid,2192.2700,1395.4012,0.2797); SetPlayerSkin(playerid,50); SetPlayerFacingAngle(playerid,270); } return 1; } public OnObjectMoved(objectid) { if(objectid == nDoor)//north door { for(new i = 0; i < MAX_PLAYERS; i++) { if(GetPVarInt(i,"doorsound") == 1) PlayerPlaySound(i,1154,0,0,0), SetPVarInt(i,"doorsound",0); } if(areaINFO[DOORS_OPEN] == 0) return areaINFO[DOORS_OPEN] = 1; if(areaINFO[DOORS_OPEN] == 1) return areaINFO[DOORS_OPEN] = 0; } return 1; } public OnPlayerEnterDynamicArea(playerid,areaid) { if(areaid == elevatorarea) { if(areaINFO[DOORS_OPEN] == 0) { MoveObject(nDoor,2211.40, 1394.56+2.0, 1.11, 1); MoveObject(sDoor,2211.40, 1390.59-2.0, 1.11, 1); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i,10,2209.5505, 1392.5336, -0.5699)) return PlayerPlaySound(i,1153,0,0,0), SetPVarInt(i,"doorsound",1); } return 1; } if(areaINFO[DOORS_OPEN] == 1) { MoveObject(nDoor,2211.40, 1394.56, 1.11, 1); MoveObject(sDoor,2211.40, 1390.59, 1.11, 1); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i,10,2209.5505, 1392.5336, -0.5699)) return PlayerPlaySound(i,1153,0,0,0), SetPVarInt(i,"doorsound",1); } return 1; } } return 1; }