Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================================================
- #include <a_samp>
- #include <color>
- //==============================================================================
- #define COLOR_RED 0xFF0000FF
- #define COLOR_SIMPSONS 0xFFD90FAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_NAVY 0x000080FF
- #define COLOR_BLUE 0x0000FFFF
- #define COLOR_TEAL 0x008080FF
- #define COLOR_LIME 0x00FF00FF
- #define COLOR_AQUA 0x00FFFFFF
- #define COLOR_CYAN 0x00FFFFFF
- #define COLOR_MAROON 0x800000FF
- #define COLOR_PURPLE 0x800080FF
- #define COLOR_OLIVE 0x808000FF
- #define COLOR_GRAY 0x808080FF
- #define COLOR_SILVER 0xC0C0C0FF
- #define COLOR_FUCHSIA 0xFF00FFFF
- #define COLOR_PINK 0xFF00FFFF
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_DARKORANGE 0xFF3F00AA
- #define COLOR_BLACK 0x000000FF
- #define COLOR_ORANGE 0xFFA500FF
- #define COLOR_GOLD 0xFFD700FF
- #define COLOR_LIGHTBLUE 0xADD8E6FF
- #define COLOR_GREENYELLOW 0xADFF2FFF
- #define COLOR_DARKGREEN 0x006400FF
- #define COLOR_LIGHTYELLOW 0xFFFFE0FF
- #define COLOR_LIGHTPINK 0xFFB6C1FF
- #define COLOR_LIGHTCORAL 0xF08080FF
- #define COLOR_DARKGRAY 0xA9A9A9FF
- #define COLOR_BROWN 0x400000FF
- //==============================================================================
- #if defined FILTERSCRIPT
- //==============================================================================
- new Float:X, Float:Y, Float:Z, Float:Angle;
- new CurrentSpawnedVehicle[MAX_PLAYERS];
- //==============================================================================
- new Float:px, Float:py, Float:pz, Float:prx, Float:pry, Float:prz;
- new Float:x, Float:y, Float:z, Float:z_angle;
- new vehicleid, VehicleObject[15];
- //==============================================================================
- stock _AttachObjectToVehicle(objectid, vehid, Float:ox, Float:oy, Float:oz, Float:rox=0.0, Float:roy=0.0, Float:roz=0.0)
- {
- AttachObjectToVehicle(objectid, vehid, ox, oy, oz, 0.0, 0.0, 0.0);
- #pragma unused rox
- #pragma unused roy
- #pragma unused roz
- }
- #define AttachObjectToVehicle _AttachObjectToVehicle
- //==============================================================================
- public OnFilterScriptInit()
- {
- print("\n*************************");
- print("*Player Menu Dialog Loaded*");
- print("*************************\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n***************************");
- print("*Player Menu Dialog UnLoaded*");
- print("***************************\n");
- }
- #endif
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/playermenu", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Player Menu","Player Colour!\nCar Tune!\nVehicle Selection Menu!\nNeons!\nVehicle Control System!\nPlayer Text Colour!","Select","Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 10)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"{00C0FF}Player Colour List!","{FF0000}RED\n{33AA33}GREEN\n{000080}NAVY\n{0000FF}BLUE\n{008080}TEAL\n{00FF00}LIME\n{00FFFF}AQUA\n{00FFFF}CYAN\n{800000}MAROON\n{800080}PURPLE\n{808000}OLIVE\n{808080}GRAY\n{C0C0C0}SILVER\n{FF00FF}FUCHSIA\n{FF00FF}PINK\n{FFFF00}YELLOW\n{FFFFFF}WHITE\n{FF3F00}BACK","Select","Cancel");
- }
- }
- }
- if(dialogid == 11)
- {
- if(response)
- {
- if (listitem == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "Your color is now Red");
- SetPlayerColor(playerid, COLOR_RED);
- }
- if (listitem == 1)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Your color is now Green");
- SetPlayerColor(playerid, COLOR_GREEN);
- }
- if (listitem == 2)
- {
- SendClientMessage(playerid, COLOR_NAVY, "Your color is now Navy");
- SetPlayerColor(playerid, COLOR_NAVY);
- }
- if (listitem == 3)
- {
- SendClientMessage(playerid, COLOR_BLUE, "Your color is now Blue");
- SetPlayerColor(playerid, COLOR_BLUE);
- }
- if (listitem == 4)
- {
- SendClientMessage(playerid, COLOR_TEAL, "Your color is now Teal");
- SetPlayerColor(playerid, COLOR_TEAL);
- }
- if (listitem == 5)
- {
- SendClientMessage(playerid, COLOR_LIME, "Your color is now a Lime");
- SetPlayerColor(playerid, COLOR_LIME);
- }
- if (listitem == 6)
- {
- SendClientMessage(playerid, COLOR_AQUA, "Your color is now Aqua");
- SetPlayerColor(playerid, COLOR_AQUA);
- }
- if (listitem == 7)
- {
- SendClientMessage(playerid, COLOR_CYAN, "Your color is now Cyan");
- SetPlayerColor(playerid, COLOR_CYAN);
- }
- if (listitem == 8)
- {
- SendClientMessage(playerid, COLOR_MAROON, "Your color is now Maroon");
- SetPlayerColor(playerid, COLOR_MAROON);
- }
- if (listitem == 9)
- {
- SendClientMessage(playerid, COLOR_PURPLE, "Your color is now Purple");
- SetPlayerColor(playerid, COLOR_PURPLE);
- }
- if (listitem == 10)
- {
- SendClientMessage(playerid, COLOR_OLIVE, "Your color is now Olive");
- SetPlayerColor(playerid, COLOR_OLIVE);
- }
- if (listitem == 11)
- {
- SendClientMessage(playerid, COLOR_GRAY, "Your color is now Gray");
- SetPlayerColor(playerid, COLOR_GRAY);
- }
- if (listitem == 12)
- {
- SendClientMessage(playerid, COLOR_SILVER, "Your color is now Silver");
- SetPlayerColor(playerid, COLOR_SILVER);
- }
- if (listitem == 13)
- {
- SendClientMessage(playerid, COLOR_FUCHSIA, "Your color is now Fuchsia");
- SetPlayerColor(playerid, COLOR_FUCHSIA);
- }
- if (listitem == 14)
- {
- SendClientMessage(playerid, COLOR_PINK, "Your color is now Pink");
- SetPlayerColor(playerid, COLOR_PINK);
- }
- if (listitem == 15)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Your color is now Yellow");
- SetPlayerColor(playerid, COLOR_YELLOW);
- }
- if (listitem == 16)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Your color is now White");
- SetPlayerColor(playerid, COLOR_WHITE);
- }
- if (listitem == 17)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Player Menu!","Player Colour!\nCar Tune!\nVehicle Selection Menu!\nNeons!\nVehicle Control System!\nWeapon Shop\nPlayer Text Colour!","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Car Tune
- //==============================================================================
- new vehicleid;
- vehicleid = GetPlayerVehicleID(playerid);
- //==============================================================================
- if (dialogid == 10)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,1223,DIALOG_STYLE_LIST,"Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- if(dialogid == 1223)
- {
- if(response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,1224,DIALOG_STYLE_LIST,"Tuners","Elegy\nFlash\nJester\nSultan\nUranus\nStratum","Select","Cancel");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid,1225,DIALOG_STYLE_LIST,"Lowriders","Blade\nSavanna\nBroadway\nRemington\nSlamvan\nTornado","Select","Cancel");
- }
- if (listitem == 2)
- {
- if(GetVehicleModel(vehicleid) == 562||565||559||560||558||561)
- {
- ShowPlayerDialog(playerid,1226,DIALOG_STYLE_LIST,"Others","Spoilers","Select","Cancel");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
- }
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid,1227,DIALOG_STYLE_LIST,"Basic parts","Rims\nExtra","Select","Cancel");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid,1250,DIALOG_STYLE_LIST,"Paintjobs","Paintjob1\nPaintjob2\nPaintjob3","Select","Cancel");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////
- if(dialogid == 1224)
- {
- if(response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,1228,DIALOG_STYLE_LIST,"Elegy","ExhaustAlienElegy\nX-Flow roof\nAlien Sideskirt\nExhaust X-Flow\nAlien Roof\nX-Flow Sideskirt\nSpoiler X-Flow\nSpoilerAlien\nRear BumperX-Flow\nRear BumperAlien\nFront Bumper X-Flow\nFront Bumper Alien","Select", "Cancel");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid,1229,DIALOG_STYLE_LIST,"Flash","Exhaust X-Flow\nExhaust Alien\n Alien Sideskirt\nX-Flow sideskirt\nSpoiler Alien\nSpoiler X-Flow\nRoof X-Flow\nRoof Alien\nRear bumper Alien\nRear bumper X-Flow\nFront bumper X-Flow\nFront Bumper Alien","Select", "Cancel");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid,1230,DIALOG_STYLE_LIST,"Jester","Sideskirts Alien\nSideskirts X-Flow\nFront Bumper X-Flow\nRear bumper Alien\nFront Bumper Alien\nRear Bumper X-Flow\nSpoiler Alien\nSpoiler X-Flow\nExhaust Alien\nExhaust X-Flow\nRoof Alien\nRoof X-Flow","Select", "Cancel");
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid,1231,DIALOG_STYLE_LIST,"Sultan","Alien Sideskirt\nExhaust Alien\nExhaust X-Flow\nX-flow Sideskirt\nAlien Roof\nX-Flow Roof\nSpoiler Alien\nSpoiler X-Flow\nRear Bumper X-Flow\nRear Bumper Alien\nFront Bumper Alien\nFront Bumper X-Flow","Select", "Cancel");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid,1232,DIALOG_STYLE_LIST,"Uranus","Roof Alien\nRoof X-Flow\nExhaust X-Flow\nExhaust Alien\nSideskirt Alien\nSideskirt X-Flow\nSpoiler X-Flow\nSpoiler Alien\nFront Bumper X-Flow\nFront Bumper Alien\nRear Bumper X-FLow\nRear Bumper Alien","Select", "Cancel");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid,1233,DIALOG_STYLE_LIST,"Stratum","Roof Alien\nSideskirt Alien\nSideskirt X-Flow\nSpoiler Alien\nExhaust X-Flow\nSpoiler X-Flow\nRoof X-Flow\nExhaust Alien\nRear Bumper Alien\nFront Bumper Alien\nRear Bumper X-Flow\nFront Bumper X-Flow","Select", "Cancel");
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1225)
- {
- if(response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"Blade","Roof Convertible\nRood Hardtop\nExhaust Chrome\nExhaust Slamin\nSideskirt Chrome\nFrontbumper Slamin\nFrontbumper Chrome\nRearbumper Slamin\nRearbumper Chrome","Select", "Cancel");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid,1235,DIALOG_STYLE_LIST,"Savanna","Sideskirt Chrome Strip\nExhaust Chrome\nExhaust Slamin\nHardtop\nSofttop\nRear bumper Slamin\nRear bumper chrome\nFront bumper Slamin\nFront bumper chrome","Select", "Cancel");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid,1236,DIALOG_STYLE_LIST,"Broadway","Sideskirt Chrome\nExhaust Slamin\nExhaust Chrome\nFront bumper chrome\nFront bumper Slamin\nRearbumper Chrome\nRearbumper Slamin","Select", "Cancel");
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid,1237,DIALOG_STYLE_LIST,"Remington","Bullbar Chrome Grill\nSideskirt Chrome Flame\nSideskirt Chrome Arches\nBullbars Bars\nBullbars Lights\nExhaust Chrome\nExhaust Slamin\nRear bumper Chrome\nFront bumper slamin\nRear bumper Chrome\nFront bumper slamin","Select", "Cancel");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid,1238,DIALOG_STYLE_LIST,"Slamvan","Rear Bullbars Chrome\nRear Bullbars Slamin\nFront Sign\nFront Sign 2\nExhaust Chrome\nExhaust Slamin\nFront Bullbars Chrome\nFront Bullbars Slamin\nFront Bumper Chrome\nSideskirt Chrome Trim\nSideskirt Wheelcovers","Select", "Cancel");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid,1239,DIALOG_STYLE_LIST,"Tornado","Sideskirt\nExhaust Slamin\nExhaust Chrome\nFront Bumper Slaming\nFront Bumper Chrome\nRear Bumper Chrome\nRear Bumper Slamin","Select", "Cancel");
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1226)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(IsTuner(GetVehicleModel(vehicleid)))
- {
- ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx","Select", "Cancel");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
- }
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid,1241,DIALOG_STYLE_LIST,"Hoods","Hood Champ Scoop\nHood Fury Scoop\nRoof Scoop\nRace Scoop\nWorx Scoop","Select", "Cancel");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid,1242,DIALOG_STYLE_LIST,"Lamps","Round Fog\nSqaure Fog","Select", "Cancel");
- }
- if (listitem == 3)
- {
- ShowPlayerDialog(playerid,1243,DIALOG_STYLE_LIST,"Vents","Oval Vents\nSqaure Vents","Select", "Cancel");
- }
- if (listitem == 4)
- {
- ShowPlayerDialog(playerid,1244,DIALOG_STYLE_LIST,"Sides","Sideskirt","Select", "Cancel");
- }
- if (listitem == 5)
- {
- ShowPlayerDialog(playerid,1245,DIALOG_STYLE_LIST,"Exhaust","Exhausts Upset\nExhaust Twin\nExhaust Large\nExhaust Medium\nExhaust Small","Select", "Cancel");
- }
- if (listitem == 6)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1227)
- {
- if(response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,1246,DIALOG_STYLE_LIST,"Rims","Ahab\nVirtual\nAccess\nShadow\nMega\nRimshine\nWires\nClassic\nTwist\nCutter\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic","Select", "Cancel");
- }
- if (listitem == 1)
- {
- ShowPlayerDialog(playerid,1247,DIALOG_STYLE_LIST,"Extra","Bas Boost\nHydraulics\nNitro x2\nNitro x5\nNitro x10","Select", "Cancel");
- }
- if (listitem == 2)
- {
- ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////
- if(dialogid == 1228)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 562)
- {
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1034);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 1)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1035);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1036);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1040);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1037);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1038);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1039);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1041);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1146);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1147);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1148);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1149);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1172);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 562)
- {
- AddVehicleComponent(vehicle, 1171);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1229)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicleid, 1045);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 1)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1046);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1047);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1051);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1048);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1052);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1049);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1050);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1053);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1054);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1150);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1151);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1152);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 565)
- {
- AddVehicleComponent(vehicle, 1153);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1230)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicleid, 1069);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1071);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 1)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1070);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1072);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1173);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1159);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1160);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1161);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1162);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1158);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1065);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1066);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1067);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 559)
- {
- AddVehicleComponent(vehicle, 1068);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1231)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicleid, 1026);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1027);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicleid, 1028);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1029);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1030);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1031);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1032);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1033);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1138);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1139);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1140);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1141);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1169);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 560)
- {
- AddVehicleComponent(vehicle, 1170);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1233)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicleid, 1055);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicleid, 1056);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1062);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1057);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1063);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1058);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1059);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1060);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1061);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1064);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1154);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1155);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1156);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 561)
- {
- AddVehicleComponent(vehicle, 1157);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1232)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicleid, 1088);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicleid, 1091);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1089);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1092);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1090);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1094);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1093);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1095);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1163);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1164);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1165);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1166);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1167);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- if (listitem == 11)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 558)
- {
- AddVehicleComponent(vehicle, 1168);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1234)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicleid, 1103);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicleid, 1128);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1104);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1105);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1107);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1108);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1181);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1182);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1183);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 536)
- {
- AddVehicleComponent(vehicle, 1184);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1235)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicleid, 1102);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1133);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicleid, 1129);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1132);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1130);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1132);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1186);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1187);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1188);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 567)
- {
- AddVehicleComponent(vehicle, 1189);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1236)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicleid, 1042);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1099);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicleid, 1043);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicle, 1044);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicle, 1174);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicle, 1175);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicle, 1176);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 575)
- {
- AddVehicleComponent(vehicle, 1177);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1237)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicleid, 1100);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicleid, 1101);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1122);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1106);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1124);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1123);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1125);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1126);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1127);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1178);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1179);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1180);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 534)
- {
- AddVehicleComponent(vehicle, 1185);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1238)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicleid, 1109);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicleid, 1110);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1111);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1112);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1113);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1114);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1115);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 7)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1116);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 8)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1117);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 9)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1120);
- AddVehicleComponent(vehicle, 1118);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- if (listitem == 10)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 535)
- {
- AddVehicleComponent(vehicle, 1121);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicle, 1119);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////
- if(dialogid == 1239)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicleid, 1134);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1137);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicleid, 1135);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicle, 1136);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicle, 1190);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicle, 1191);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicle, 1192);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- if (listitem == 6)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 576)
- {
- AddVehicleComponent(vehicle, 1193);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
- }
- }
- }
- }
- /////////////////////////////////////////////////////////////////////////
- if(dialogid == 1240)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1000);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1001);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1002);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1003);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1015);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 5)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1016);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////
- if(dialogid == 1241)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1004);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1005);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1006);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 3)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1011);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 4)
- {
- new vehicle;
- vehicle = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicle, 1012);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1242)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1013);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1024);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1243)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1142);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1143);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1142);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1145);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1244)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1007);
- GivePlayerMoney(playerid,-800);
- AddVehicleComponent(vehicleid, 1017);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1245)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1018);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1019);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1020);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 3)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1021);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 4)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1022);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1246)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1096);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1097);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1098);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 3)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1073);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 4)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1074);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 5)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1075);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 6)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1076);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 7)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1077);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 8)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1078);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 9)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1079);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 10)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1080);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 11)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1081);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 12)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1082);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 13)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1083);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 14)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1084);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 15)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1085);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1247)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1086);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1087);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1009);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 3)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1008);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 4)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- AddVehicleComponent(vehicleid, 1010);
- GivePlayerMoney(playerid,-800);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1250)
- {
- if(response)
- {
- if (listitem == 0)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- ChangeVehiclePaintjob(vehicleid,1);
- GivePlayerMoney(playerid,-1000);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 1)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- ChangeVehiclePaintjob(vehicleid,2);
- GivePlayerMoney(playerid,-1000);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- if (listitem == 2)
- {
- if(GetVehicleModel(vehicleid) >=1)
- {
- ChangeVehiclePaintjob(vehicleid,3);
- GivePlayerMoney(playerid,-1000);
- SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
- }
- else
- {
- SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
- }
- }
- }
- }
- return 0;
- }
- stock IsTuner(modelid)
- {
- switch(modelid)
- {
- case 562, 565, 559,
- 560, 558, 561: return true;
- }
- return false;
- }
- //==============================================================================
- //==============================================================================
- // Carmenu
- //==============================================================================
- if (dialogid == 10)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu!","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- }
- if(dialogid == 100)
- {
- if(response)
- {
- if(listitem == 0) // Bikes
- {
- ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "Bikes", "BF-400\nBike\nBMX\nHPV1000\nFaggio\nFCR-900\nFreeway\nMountain Bike\nNRG-500\nPCJ-600\nPizzaboy\nSanchez\nWayfarer\nQuad\nBack", "Select","Cancel");
- }
- if(listitem == 1) // Cars [A-E]
- {
- new cMenuString[408];
- cMenuString = " ";
- strcat(cMenuString, "Admiral\nAlpha\nAmbulance\nBaggage\nBandito\nBanshee\nBarracks\nBenson\nBerkley's RC Van\nBF Injection\nBlade\nBlista Compact\nBloodring Banger\nBobcat\nBoxville 1\nBoxville 2\nBravura\nBroadway\nBuccaneer\nBuffalo\nBullet\nBurrito\nBus\nCabbie\n");
- strcat(cMenuString, "Caddy\nCadrona\nCamper\nCement Truck\nCheetah\nClover\nClub\nCoach\nCombine Harvester\nComet\nDFT-30\nDozer\nDumper\nDune(ride)\nElegant\nElegy\nEmperor\nEsperanto\nEuros\nBack");
- ShowPlayerDialog(playerid, 102, DIALOG_STYLE_LIST, "Cars 1 [A-E]", cMenuString, "Select","Cancel");
- }
- if(listitem == 2) // Cars 2 [F-P]
- {
- new cMenuString[408];
- cMenuString = " ";
- strcat(cMenuString, "FBI Rancher\nFBI Truck\nFeltzer\nFiretruck 1\nFiretruck 2\nFlash\nFlatbed\nForklift\nFortune\nGlendale 1\nGlendale 2\nGreenwood\nHermes\nHotdog\nHotknife\nHotring Racer 1\nHotring Racer 2\nHotring Racer 3\nHuntley\nHustler\nInfernus\nIntruder\nJester\nJourney\nKart\nLandstalker\nLinerunner\nMajestic\nManana\nMerit\nMesa\nMonster\nMonster A\nMonster B\nMoonbeam\nMower\nMr Whoopee\nMule\nNebula\n");
- strcat(cMenuString, "Newsvan\nOceanic\nPacker\nBack");
- ShowPlayerDialog(playerid, 103, DIALOG_STYLE_LIST, "Cars 2 [F-P]", cMenuString, "Select","Cancel");
- }
- if(listitem == 3) // Cars 3 [P-S]
- {
- ShowPlayerDialog(playerid, 104, DIALOG_STYLE_LIST, "Cars 3 [P-S]", "Patriot\nPerenniel\nPetrol Tanker\nPhoenix\nPicador\nPolice Car (LSPD)\nPolice Car (SFPD)\nPolice Car (LVPD)\nPolice Ranger\nPolice Truck (Enforcer)\nPolice Truck (SWAT)\nPony\nPremier\nPrevion\nPrimo\nRancher\nRegina\nRemington\nRoadtrain\nRomero\nRumpo\nSabre\nSadler 1\nSadler 2\nSandking\nSavanna\nSecuricar\nSentinel\nSlamvan\nSolair\nStafford\nStallion\nStratum\nStretch\nSultan\nSunrise\nBack","Select","Cancel");
- }
- if(listitem == 4) // Cars 4 [S-Z]
- {
- ShowPlayerDialog(playerid, 105, DIALOG_STYLE_LIST, "Cars 4 [S-Z]", "Super GT\nSweeper\nTahoma\nTampa\nTaxi\nTornado\nTowtruck\nTractor\nTrashmaster\nTug\nTurismo\nUranus\nUtility Van\nVincent\nVirgo\nVoodoo\nWalton\nWashington\nWilliard\nWindsor\nYankee\nYosemite\nZR-350\nBack","Select","Cancel");
- }
- if(listitem == 5) // Helicopters
- {
- ShowPlayerDialog(playerid, 106, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nLeviathan\nMaverick\nPolice Maverick\nNews Chopper\nRaindance\nSparrow\nBack","Select","Cancel");
- }
- if(listitem == 6) // Planes
- {
- ShowPlayerDialog(playerid, 107, DIALOG_STYLE_LIST, "Planes", "Andromada\nAT-400\nBeagle\nCropduster\nDodo\nHydra\nNevada\nRustler\nShamal\nSkimmer\nStuntplane\nBack","Select","Cancel");
- }
- if(listitem == 7) // Boats
- {
- ShowPlayerDialog(playerid, 108, DIALOG_STYLE_LIST, "Boats", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nReefer\nSpeeder\nSquallo\nTropic\nBack","Select","Cancel");
- }
- if(listitem == 8) // Trains
- {
- ShowPlayerDialog(playerid, 109, DIALOG_STYLE_LIST, "Trains", "Brown Streak\nFreight Box Trailer\nFreight Flat Trailer\nFreight\nStreak Trailer\nTram\nBack","Select","Cancel");
- }
- if(listitem == 9) // Trailers
- {
- ShowPlayerDialog(playerid, 110, DIALOG_STYLE_LIST, "Trailers", "Article Trailer 1\nArticle Trailer 2\nArticle Trailer 3\nBaggage Trailer (A)\nBaggage Trailer (B)\nFarm Trailer\nPetrol Trailer\nTug Stairs Trailer\nUtility Trailer\nBack","Select","Cancel");
- }
- if(listitem == 10) // RC Vehicles + Vortex
- {
- ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "RC Vehicles + Vortex", "RC Bandit\nRC Cam\nRC Tiger\nRC Baron\nRC Goblin\nRC Raider\nVortex\nBack","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Bikes
- //==============================================================================
- if(dialogid == 101) // Bikes
- {
- if(response)
- {
- if(listitem == 0) // BF-400
- {
- CreateVehicleEx(playerid,581, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Bike
- {
- CreateVehicleEx(playerid,509, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // BMX
- {
- CreateVehicleEx(playerid,481, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // HPV1000
- {
- CreateVehicleEx(playerid,523, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Faggio
- {
- CreateVehicleEx(playerid,462, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // FCR-900
- {
- CreateVehicleEx(playerid,521, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Freeway
- {
- CreateVehicleEx(playerid,463, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Mountain Bike
- {
- CreateVehicleEx(playerid,510, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // NRG-500
- {
- CreateVehicleEx(playerid,522, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // PCJ-600
- {
- CreateVehicleEx(playerid,461, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Pizzaboy
- {
- CreateVehicleEx(playerid,448, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Sanchez
- {
- CreateVehicleEx(playerid,468, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 12) // Wayfarer
- {
- CreateVehicleEx(playerid,586, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 13) // Quad
- {
- CreateVehicleEx(playerid,471, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 14) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Cars 1
- //==============================================================================
- if(dialogid == 102) // Cars 1
- {
- if(response)
- {
- if(listitem == 0) // Admiral
- {
- CreateVehicleEx(playerid,445, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Alpha
- {
- CreateVehicleEx(playerid,602, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Ambulance
- {
- CreateVehicleEx(playerid,416, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Baggage
- {
- CreateVehicleEx(playerid,485, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Bandito
- {
- CreateVehicleEx(playerid,568, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Banshee
- {
- CreateVehicleEx(playerid,429, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Barracks
- {
- CreateVehicleEx(playerid,433, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Benson
- {
- CreateVehicleEx(playerid,499, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Berkley's RC Van
- {
- CreateVehicleEx(playerid,459, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) //BF Injection
- {
- CreateVehicleEx(playerid,424, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Blade
- {
- CreateVehicleEx(playerid,536, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Blista Compact
- {
- CreateVehicleEx(playerid,496, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 12) // Bloodring Banger
- {
- CreateVehicleEx(playerid,504, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 13) // Bobcat
- {
- CreateVehicleEx(playerid,422, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 14) // Boxville 1
- {
- CreateVehicleEx(playerid,609, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 15) // Boxville 2
- {
- CreateVehicleEx(playerid,498, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 16) // Bravura
- {
- CreateVehicleEx(playerid,401, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 17) // Broadway
- {
- CreateVehicleEx(playerid,575, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 18) // Buccaneer
- {
- CreateVehicleEx(playerid,518, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 19) // Buffalo
- {
- CreateVehicleEx(playerid,402, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 20) // Bullet
- {
- CreateVehicleEx(playerid,541, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 21) // Burrito
- {
- CreateVehicleEx(playerid,482, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 22) // Bus
- {
- CreateVehicleEx(playerid,431, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 23) // Cabbie
- {
- CreateVehicleEx(playerid,438, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 24) // Caddy
- {
- CreateVehicleEx(playerid,457, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 25) // Cadrona
- {
- CreateVehicleEx(playerid,527, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 26) // Camper
- {
- CreateVehicleEx(playerid,483, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 27) // Cement Truck
- {
- CreateVehicleEx(playerid,524, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 28) // Cheetah
- {
- CreateVehicleEx(playerid,415, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 29) // Clover
- {
- CreateVehicleEx(playerid,542, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 30) // Club
- {
- CreateVehicleEx(playerid,589, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 31) // Coach
- {
- CreateVehicleEx(playerid,437, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 32) // Combine Harvester
- {
- CreateVehicleEx(playerid,532, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 33) // Comet
- {
- CreateVehicleEx(playerid,480, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 34) // DFT-30
- {
- CreateVehicleEx(playerid,578, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 35) // Dozer
- {
- CreateVehicleEx(playerid,486, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 36) // Dumper
- {
- CreateVehicleEx(playerid, 406, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 37) // Dune(ride)
- {
- CreateVehicleEx(playerid, 573, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 38) // Elegant
- {
- CreateVehicleEx(playerid,507, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 39) // Elegy
- {
- CreateVehicleEx(playerid,562, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 40) // Emperor
- {
- CreateVehicleEx(playerid,585, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 41) // Esperanto
- {
- CreateVehicleEx(playerid,419, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 42) // Euros
- {
- CreateVehicleEx(playerid,587, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 43) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Cars 2
- //==============================================================================
- if(dialogid == 103) // Cars 2
- {
- if(response)
- {
- if(listitem == 0) // FBI Rancher
- {
- CreateVehicleEx(playerid,490, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // FBI Truck
- {
- CreateVehicleEx(playerid,528, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Feltzer
- {
- CreateVehicleEx(playerid,533, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Firetruck 1
- {
- CreateVehicleEx(playerid,544, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Firetruck 2
- {
- CreateVehicleEx(playerid,407, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Flash
- {
- CreateVehicleEx(playerid,565, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Flatbed
- {
- CreateVehicleEx(playerid,455, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Forklift
- {
- CreateVehicleEx(playerid,530, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Fortune
- {
- CreateVehicleEx(playerid,526, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Glendale 1
- {
- CreateVehicleEx(playerid,466, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Glendale 2
- {
- CreateVehicleEx(playerid,604, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Greenwood
- {
- CreateVehicleEx(playerid,492, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 12) // Hermes
- {
- CreateVehicleEx(playerid,474, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 13) // Hotdog
- {
- CreateVehicleEx(playerid,588, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 14) // Hotknife
- {
- CreateVehicleEx(playerid,434, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 15) // Hotring Racer 1
- {
- CreateVehicleEx(playerid,502, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 16) // Hotring Racer 2
- {
- CreateVehicleEx(playerid,503, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 17) // Hotring Racer 3
- {
- CreateVehicleEx(playerid,494, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 18) // Huntley
- {
- CreateVehicleEx(playerid,579, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 19) // Hustler
- {
- CreateVehicleEx(playerid,545, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 20) // Infernus
- {
- CreateVehicleEx(playerid,411, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 21) // Intruder
- {
- CreateVehicleEx(playerid,546, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 22) // Jester
- {
- CreateVehicleEx(playerid,559, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 23) // Journey
- {
- CreateVehicleEx(playerid,508, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 24) // Kart
- {
- CreateVehicleEx(playerid,571, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 25) // Landstalker
- {
- CreateVehicleEx(playerid,400, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 26) // Linerunner
- {
- CreateVehicleEx(playerid,403, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 27) // Majestic
- {
- CreateVehicleEx(playerid,517, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 28) // Manana
- {
- CreateVehicleEx(playerid,410, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 29) // Merit
- {
- CreateVehicleEx(playerid,551, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 30) // Mesa
- {
- CreateVehicleEx(playerid,500, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 31) // Monster
- {
- CreateVehicleEx(playerid, 444, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 32) // Monster A
- {
- CreateVehicleEx(playerid, 556, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 33) // Monster B
- {
- CreateVehicleEx(playerid, 557, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 34) // Moonbeam
- {
- CreateVehicleEx(playerid,418, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 35) // Mower
- {
- CreateVehicleEx(playerid,572, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 36) // Mr Whoopee
- {
- CreateVehicleEx(playerid, 423, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 37) // Mule
- {
- CreateVehicleEx(playerid, 414, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 38) // Nebula
- {
- CreateVehicleEx(playerid,516, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 39) // Newsvan
- {
- CreateVehicleEx(playerid,582, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 40) // Oceanic
- {
- CreateVehicleEx(playerid,467, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 41) // Packer
- {
- CreateVehicleEx(playerid,443, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 42) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Cars 3
- //==============================================================================
- if(dialogid == 104) // Cars 3
- {
- if(response)
- {
- if(listitem == 0) // Patriot
- {
- CreateVehicleEx(playerid,470, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Perenniel
- {
- CreateVehicleEx(playerid,404, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Petrol Tanker
- {
- CreateVehicleEx(playerid,514, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Phoenix
- {
- CreateVehicleEx(playerid,603, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Picador
- {
- CreateVehicleEx(playerid,600, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Police Car LSPD
- {
- CreateVehicleEx(playerid,596, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Police Car SFPD
- {
- CreateVehicleEx(playerid,597, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Police Car LVPD
- {
- CreateVehicleEx(playerid,598, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Police Ranger
- {
- CreateVehicleEx(playerid,599, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Police Truck (Enforcer)
- {
- CreateVehicleEx(playerid,427, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Police Truck (SWAT)
- {
- CreateVehicleEx(playerid,601, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Pony
- {
- CreateVehicleEx(playerid,413, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 12) // Premier
- {
- CreateVehicleEx(playerid,426, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 13) // Previon
- {
- CreateVehicleEx(playerid,436, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 14) // Primo
- {
- CreateVehicleEx(playerid,547, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 15) // Rancher
- {
- CreateVehicleEx(playerid,489, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 16) // Regina
- {
- CreateVehicleEx(playerid,479, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 17) // Remington
- {
- CreateVehicleEx(playerid,534, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 18) // Roadtrain
- {
- CreateVehicleEx(playerid,515, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 19) // Romero
- {
- CreateVehicleEx(playerid,442, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 20) // Rumpo
- {
- CreateVehicleEx(playerid,440, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 21) // Sabre
- {
- CreateVehicleEx(playerid, 475, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 22) // Sadler 1
- {
- CreateVehicleEx(playerid,543, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 23) // Sadler 2
- {
- CreateVehicleEx(playerid,605, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 24) // Sandking
- {
- CreateVehicleEx(playerid,495, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 25) // Savanna
- {
- CreateVehicleEx(playerid,567, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 26) // Securicar
- {
- CreateVehicleEx(playerid,428, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 27) // Sentinel
- {
- CreateVehicleEx(playerid,405, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 28) // Slamvan
- {
- CreateVehicleEx(playerid,535, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 29) // Solair
- {
- CreateVehicleEx(playerid,458, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 30) // Stafford
- {
- CreateVehicleEx(playerid,580, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 31) // Stallion
- {
- CreateVehicleEx(playerid,439, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 32) // Stratum
- {
- CreateVehicleEx(playerid,561, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 33) // Stretch
- {
- CreateVehicleEx(playerid,409, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 34) // Sultan
- {
- CreateVehicleEx(playerid,560, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 35) // Sunrise
- {
- CreateVehicleEx(playerid,550, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 36) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Cars 4
- //==============================================================================
- if(dialogid == 105) // Cars 4
- {
- if(response)
- {
- if(listitem == 0) // Super GT
- {
- CreateVehicleEx(playerid,506, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Sweeper
- {
- CreateVehicleEx(playerid,574, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Tahoma
- {
- CreateVehicleEx(playerid,566, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Tampa
- {
- CreateVehicleEx(playerid,549, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Taxi
- {
- CreateVehicleEx(playerid,420, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Tornado
- {
- CreateVehicleEx(playerid,576, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Towtruck
- {
- CreateVehicleEx(playerid,525, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Tractor
- {
- CreateVehicleEx(playerid,531, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Trashmaster
- {
- CreateVehicleEx(playerid,408, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Tug
- {
- CreateVehicleEx(playerid,583, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Turismo
- {
- CreateVehicleEx(playerid,451, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Uranus
- {
- CreateVehicleEx(playerid,558, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 12) // Utility Van
- {
- CreateVehicleEx(playerid,552, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 13) // Vincent
- {
- CreateVehicleEx(playerid,540, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 14) // Virgo
- {
- CreateVehicleEx(playerid,491, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 15) // Voodoo
- {
- CreateVehicleEx(playerid,412, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 16) // Walton
- {
- CreateVehicleEx(playerid,478, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 17) // Washington
- {
- CreateVehicleEx(playerid, 421, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 18) // Williard
- {
- CreateVehicleEx(playerid,529, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 19) // Windsor
- {
- CreateVehicleEx(playerid,555, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 20) // Yankee
- {
- CreateVehicleEx(playerid,456, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 21) // Yosemite
- {
- CreateVehicleEx(playerid,554, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 22) // ZR-350
- {
- CreateVehicleEx(playerid,477, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 23) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Helicopters
- //==============================================================================
- if(dialogid == 106) // Helicopters
- {
- if(response)
- {
- if(listitem == 0) // Cargobob
- {
- CreateVehicleEx(playerid, 548, X,Y,Z+6, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Leviathan
- {
- CreateVehicleEx(playerid,417, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Maverick
- {
- CreateVehicleEx(playerid,487, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Police Maverick
- {
- CreateVehicleEx(playerid,497, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // News Chopper
- {
- CreateVehicleEx(playerid,488, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Raindance
- {
- CreateVehicleEx(playerid,563, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Sparrow
- {
- CreateVehicleEx(playerid,469, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Planes
- //==============================================================================
- if(dialogid == 107) // Planes
- {
- if(response)
- {
- if(listitem == 0) // Andromada
- {
- CreateVehicleEx(playerid,592, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // At-400
- {
- CreateVehicleEx(playerid,577, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Beagle
- {
- CreateVehicleEx(playerid,511, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Cropduster
- {
- CreateVehicleEx(playerid,512, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Dodo
- {
- CreateVehicleEx(playerid,593, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Hydra
- {
- CreateVehicleEx(playerid,520, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Nevada
- {
- CreateVehicleEx(playerid,553, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Rustler
- {
- CreateVehicleEx(playerid,476, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Shamal
- {
- CreateVehicleEx(playerid,519, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Skimmer
- {
- CreateVehicleEx(playerid,460, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 10) // Stuntplane
- {
- CreateVehicleEx(playerid,513, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 11) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Boats
- //==============================================================================
- if(dialogid == 108) // Boats
- {
- if(response)
- {
- if(listitem == 0) // Coastguard
- {
- CreateVehicleEx(playerid,472, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Dinghy
- {
- CreateVehicleEx(playerid,473, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Jetmax
- {
- CreateVehicleEx(playerid,493, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Launch
- {
- CreateVehicleEx(playerid,595, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Marquis
- {
- CreateVehicleEx(playerid,484, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Reefer
- {
- CreateVehicleEx(playerid,453, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Speeder
- {
- CreateVehicleEx(playerid,452, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Squallo
- {
- CreateVehicleEx(playerid,446, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Tropic
- {
- CreateVehicleEx(playerid,454, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Trains
- //==============================================================================
- if(dialogid == 109) // Trains
- {
- if(response)
- {
- if(listitem == 0) // Brown Streak
- {
- CreateVehicleEx(playerid,537, X,Y,Z+1, Angle, random(126), random(126) -1);
- }
- if(listitem == 1) // Freight Box Trailer
- {
- CreateVehicleEx(playerid, 590, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Freight Flat Trailer
- {
- CreateVehicleEx(playerid,569, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Freight
- {
- CreateVehicleEx(playerid,538, X,Y,Z+1, Angle, random(126), random(126) -1);
- }
- if(listitem == 4) // Streak Trailer
- {
- CreateVehicleEx(playerid,570, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Tram
- {
- CreateVehicleEx(playerid,449, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // Trailers
- //==============================================================================
- if(dialogid == 110) // Trailers
- {
- if(response)
- {
- if(listitem == 0) // Article Trailer 1
- {
- CreateVehicleEx(playerid,435, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // Article Trailer 2
- {
- CreateVehicleEx(playerid,450, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // Article Trailer 3
- {
- CreateVehicleEx(playerid,591, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // Baggage Trailer (A)
- {
- CreateVehicleEx(playerid,606, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // Baggage Trailer (B)
- {
- CreateVehicleEx(playerid,607, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // Farm Trailer
- {
- CreateVehicleEx(playerid,610, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Petrol Trailer
- {
- CreateVehicleEx(playerid,584, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Tug Stairs Trailer
- {
- CreateVehicleEx(playerid,608, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 8) // Utility Trailer
- {
- CreateVehicleEx(playerid,611, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 9) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- //==============================================================================
- // RC Vehicles + Vortex
- //==============================================================================
- if(dialogid == 111) // RC Vehicles + Vortex
- {
- if(response)
- {
- if(listitem == 0) // RC Bandit
- {
- CreateVehicleEx(playerid,441, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 1) // RC Cam
- {
- CreateVehicleEx(playerid,594, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 2) // RC Tiger
- {
- CreateVehicleEx(playerid,564, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 3) // RC Baron
- {
- CreateVehicleEx(playerid,464, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 4) // RC Goblin
- {
- CreateVehicleEx(playerid,501, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 5) // RC Raider
- {
- CreateVehicleEx(playerid,465, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 6) // Vortex
- {
- CreateVehicleEx(playerid,539, X,Y,Z+1, Angle, random(126), random(126), -1);
- }
- if(listitem == 7) // Back
- {
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
- }
- }
- return 1;
- }
- return 0;
- }
- //==============================================================================
- stock IsVehicleOccupied(vehicleid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
- {
- if(GetPlayerVehicleID(i) == vehicleid)
- {
- return 1;
- }
- }
- }
- return 0;
- }
- //==============================================================================
- stock CreateVehicleEx(playerid, modelid, Float:posX, Float:posY, Float:posZ, Float:angle, Colour1, Colour2, respawn_delay)
- {
- new world = GetPlayerVirtualWorld(playerid);
- new interior = GetPlayerInterior(playerid);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- DestroyVehicle(GetPlayerVehicleID(playerid));
- GetPlayerPos(playerid, posX, posY, posZ);
- GetPlayerFacingAngle(playerid, angle);
- CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
- LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
- SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
- SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
- PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
- SetPlayerInterior(playerid, interior);
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
- GetPlayerPos(playerid, posX, posY, posZ);
- GetPlayerFacingAngle(playerid, angle);
- CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
- LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
- SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
- SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
- PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
- SetPlayerInterior(playerid, interior);
- }
- return 1;
- }
- //==============================================================================
- // Neons
- //==============================================================================
- if (dialogid == 10)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST,"Neons!","\n{FF0000}Red\n{0000FF}Blue\n{00FF00}Green\n{FFFF00}Yellow\n{FF00FF}Pink\n{FFFFFF}White","Select","Cancel");
- }
- }
- }
- if(dialogid == 200)
- {
- if (listitem == 1)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[1] = CreateObject(18647,px,py,pz,prx,pry,prz,10);
- VehicleObject[2] = CreateObject(18647,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[1],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[2],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- if (listitem == 2)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[3] = CreateObject(18648,px,py,pz,prx,pry,prz,10);
- VehicleObject[4] = CreateObject(18648,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[3],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[4],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- if (listitem == 3)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[5] = CreateObject(18649,px,py,pz,prx,pry,prz,10);
- VehicleObject[6] = CreateObject(18649,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[5],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[6],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- if (listitem == 4)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[7] = CreateObject(18650,px,py,pz,prx,pry,prz,10);
- VehicleObject[8] = CreateObject(18650,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[7],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[8],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- if (listitem == 5)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[9] = CreateObject(18651,px,py,pz,prx,pry,prz,10);
- VehicleObject[10] = CreateObject(18651,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[9],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[10],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- if (listitem == 6)
- {
- GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
- GetVehicleZAngle(vehicleid,Float:z_angle);
- VehicleObject[11] = CreateObject(18652,px,py,pz,prx,pry,prz,10);
- VehicleObject[12] = CreateObject(18652,px,py,pz,prx,pry,prz,10);
- AttachObjectToVehicle(VehicleObject[11],vehicleid,0.9004, 0.1164, -0.4655,0);
- AttachObjectToVehicle(VehicleObject[12],vehicleid,-0.8706, 0.0570, -0.4655,0);
- GivePlayerMoney(playerid,-1500);
- SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
- }
- }
- }
- return 0;
- }
- //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement