Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new curveh[MAX_PLAYERS];
- new curveh2[MAX_PLAYERS];
- public OnPlayerDisconnect(playerid, reason)
- {
- curveh[playerid] = 0;
- curveh2[playerid] = 0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/v", cmdtext, true, 10) == 0)
- {
- if(GetPlayerInterior(playerid) > 1) return GameTextForPlayer(playerid, "~r~You can't spawn cars in interior!", 5000, 5);
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2009)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 2011, DIALOG_STYLE_LIST, "Planes", "Shamal\nNevada\nHydra\nStunt Plane\nAndromada\nAt 400\nBeagle\nCrop Duster\nDo-Do\nRustler\nSkimmer", "Îê", "Íàçàä");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nSparrow\nLeviathon\nPolice helicopter\nNews helicopter\nMaverick\nHunter\nRaindance\nSea Sparrow", "Îê", "Íàçàä");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 2013, DIALOG_STYLE_LIST, "Bikes", "Bike\nBMX\nMountain Bike\nFaggio\nPizza boy\nBF-400\nNRG-500\nPCJ-600\nFCR-900\nCop bike\nFreeway\nWayfarer\nSanchez\nQuad", "Îê", "Íàçàä");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, 2015, DIALOG_STYLE_LIST, "Boats", "Coast guard\nDingy\nSpeeder\nJetmax\nMarquis\nLaunch\nPolice boat\nReefer\nSquallo\nTropic", "Îê", "Íàçàä");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, 2057, DIALOG_STYLE_LIST, "RC", "Bandit\nBaron\nRaider\nGoblin\nTiger\nCam", "Îê", "Íàçàä");
- }
- }
- return 1;
- }
- if(dialogid == 2057)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(441,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(464,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(465,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(501,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(564,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(594,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2012)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(548,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(469,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(417,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(497,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(488,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(487,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(425,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(563,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(447,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2011)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(519,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1) // M4
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(553,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2) // Smg
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(520,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3) // Camera
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(513,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(592,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(577,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(511,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(512,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(593,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(476,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10) // Molotov
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(460,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2013)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(509,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(481,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(510,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(462,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(448,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(581,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(522,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(461,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(521,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(523,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(463,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(586,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(468,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(471,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2014)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 2048, DIALOG_STYLE_LIST, "Convertibles", "Comet(trans.)\nFeltzer(trans.)\nStallion(trans.)\nWindsor(trans.)", "Îê", "Íàçàä");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 2049, DIALOG_STYLE_LIST, "Industrial", "Benson\nBobcat(trans.)\nBurrito\nBoxville\nBoxburg\nCement Truck\nDFT-30\nFlatbed\nLinerunner\nMule\nNewsvan\nPacker\nPetrol tanker\nPicador(trans.)\nPony\nRoadtrain\nRumpo\nSadler\nSadler-shit\nTopfun\nTractor\nTrashmaster\nUtility Van\nWalton(trans.)\nYankee\nYosemite", "Îê", "Íàçàä");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, 2050, DIALOG_STYLE_LIST, "Lowrides", "Blade(loco.)\nBroadway(loco.)\nRemington(loco.)\nSavanna(loco.)\nSlamvan(loco.)\nTahoma(trans.)\nTornado(loco.)\nVoodoo(loco.)", "Îê", "Íàçàä");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 2051, DIALOG_STYLE_LIST, "Off road", "Bandito\nInjection(trans.)\nDune\nHuntley(trans.)\nLandstalker(trans.)\nMesa(trans.)\nMonster\nMonster A\nMonster B\nPatriot\nRancher(trans.)\nRancher 2(trans.)\nSandking", "Îê", "Íàçàä");
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, 2052, DIALOG_STYLE_LIST, "Public Service", "Ambulance\nBarracks\nBus\nCabbie(trans.)\nCouch\nCop Bike\nEnforcer\nRancher\nFBI truck\nFiretruck\nFiretruck 2\nLS Police Car\nLV Police Car\nSF Police Car\nRanger\nRhino\nSWAT\nTaxi(trans.)", "Îê", "Íàçàä");
- }
- if(listitem == 5)
- {
- new dialogbox[3200];
- strcat(dialogbox,"Admiral(trans.)\nBlooding Banger\nBravura(trans.)\nBuccaneer(trans.)\nCadrona(trans.)\nClover(trans.)\nElegant(trans.)\nElegy(arch.)\nEmperror(trans.)\nEsperanto(trans.)\nFortune(trans.)\nGlendale-Shit\nGlendale(trans.)\nGreenwood(trans.)\nHermes(trans.)\nIntruder(trans.)\nMajestic(trans.)\n");
- strcat(dialogbox,"Manana(trans.)\nMerit(trans.)\nNebula(trans.)\nOceanic(trans.)\nPremier(trans.)\nPrevio(trans.)\nPrimo(trans.)\nSentinel(trans.)\nStafford(trans.)\nSultan(arch.)\nSunrise(trans.)\nTampa(trans.)\nVincent(trans.)\nVirgo(trans.)\nWillard(trans.)\nWashington(trans.)");
- ShowPlayerDialog(playerid, 2053, DIALOG_STYLE_LIST, "Saloons", dialogbox, "Îê", "Íàçàä");
- }
- if(listitem == 6)
- {
- ShowPlayerDialog(playerid, 2054, DIALOG_STYLE_LIST, "Sport", "Alpha(trans.)\nBanshee(trans.)\nBlista compact(trans.)\nBuffalo(trans.)\nBullet(trans.)\nCheetah(trans.)\nClub(trans.)\nEuros(trans.)\nFlash(arch.)\nHotring 1\nHotring 2\nHotring 3\nInfernus(trans.)\nJester(arch.)\nPhoenix(trans.)\nSabre(trans.)\nSuper GT(trans.)\nTurismo(trans.)\nUranus(arch.)\nZR-350(trans.)", "Îê", "Íàçàä");
- }
- if(listitem == 7)
- {
- ShowPlayerDialog(playerid, 2055, DIALOG_STYLE_LIST, "Wagons", "Moonbeam(trans.)\nPerenniel(trans.)\nRegina(trans.)\nSolair(trans.)\nStratum(trans.)", "Îê", "Íàçàä");
- }
- if(listitem == 8)
- {
- ShowPlayerDialog(playerid, 2056, DIALOG_STYLE_LIST, "Unique", "Baggage\nCaddy\nCamper\nCombine Harvester\nDozer\nDumper\nForklift\nHotknife\nHustler(trans.)\nHotdog\nJourney\nKart\nMower\nMr.Whoopee\nRomero(trans.)\nSecuricar\nStretch(trans.)\nSweeper\nTowtruck\nTug\nVortex", "Îê", "Íàçàä");
- }
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2015)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(472,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(473,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(452,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(493,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(484,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(595,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(430,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(453,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(446,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(454,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2048)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(480,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(533,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(439,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(555,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2049)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(499,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(422,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(482,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(498,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(609,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(524,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(579,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(455,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(403,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(414,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(582,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(443,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(514,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(600,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 14)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(413,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 15)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(515,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 16)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(440,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 17)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(543,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 18)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(605,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 19)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(459,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 20)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(531,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 21)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(408,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 22)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(552,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 23)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(478,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 24)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(456,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 25)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(554,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2050)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(536,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(575,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(534,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(567,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(535,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(566,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(576,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(412,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2051)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(568,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(424,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(574,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(579,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(400,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(500,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(444,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(556,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(557,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(470,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(489,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(505,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(495,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2052)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(416,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(433,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(431,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(438,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(437,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(523,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(427,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(490,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(528,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(407,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(544,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(596,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(598,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(597,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 14)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(599,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 15)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(432,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 16)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(601,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 17)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(420,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2053)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(445,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(504,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(401,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(518,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(527,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(542,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(507,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(562,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(585,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(419,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(526,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(604,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(466,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(492,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 14)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(474,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 15)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(546,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 16)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(517,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 17)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(410,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 18)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(551,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 19)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(516,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 20)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(467,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 21)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(426,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 22)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(436,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 23)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(547,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 24)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(405,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 25)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(580,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 26)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(560,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 27)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(550,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 28)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(549,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 29)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(540,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 30)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(491,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 31)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(529,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 32)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(421,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2054)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(602,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(429,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(496,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(402,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(541,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(415,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(589,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(587,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(565,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(494,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(502,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(503,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(411,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(559,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 14)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(603,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 15)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(475,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 16)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(506,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 17)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(451,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 18)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(558,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 19)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(477,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2055)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(418,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(404,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(479,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(458,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(561,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- if(dialogid == 2056)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(485,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(457,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(483,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 3)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(532,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(486,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 5)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(406,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 6)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(530,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 7)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(434,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 8)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(545,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(588,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(508,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 11)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(571,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 12)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(572,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 13)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(423,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 14)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(442,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 15)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(428,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 16)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(409,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 17)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(574,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 18)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(525,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 19)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(583,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if(listitem == 20)
- {
- if(IsPlayerInAnyVehicle(playerid)) return
- GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
- new Float:x,Float:y,Float:z,Float:a, veh;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- veh = CreateVehicle(539,x+1,y+1,z,a,1,1,10000);
- PutPlayerInVehicle(playerid, veh, 0);
- }
- if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
- {
- DestroyVehicle(curveh[playerid]);
- }
- curveh[playerid] = GetPlayerVehicleID(playerid);
- curveh2[playerid] = GetVehicleModel(curveh[playerid]);
- }
- else
- {
- ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement