Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* *** Josh's Ultimate Controller ***
- !~ Release Date ~!
- !~ 21/11/11 ~!
- !~ Josh Beverly ~!
- !~ Copyrights(c)~!
- *** Please DO NOT remove credits / edit this script *** */
- #include <a_samp>
- #include <sscanf2>
- #include <ZCMD>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define SPD ShowPlayerDialog
- #define DSL DIALOG_STYLE_LIST
- #define SCM SendClientMessage
- #define DIALOG_MAIN (30000)
- #define DIALOG_VEHICLES (30001)
- #define DIALOG_AIRVEH (30002)
- #define DIALOG_LANDVEH (30003)
- #define DIALOG_SEAVEH (30004)
- #define DIALOG_MISCVEH (30005)
- #define DIALOG_BIKES (30006)
- #define DIALOG_CONVERTIBLES (30007)
- #define DIALOG_INDUSTRIAL (30008)
- #define DIALOG_LOWRIDERS (30009)
- #define DIALOG_OFFROAD (30010)
- #define DIALOG_PUBSERVEH (30011)
- #define DIALOG_SALOON (30012)
- #define DIALOG_SPORTS (30013)
- #define DIALOG_STATWAG (30014)
- #define DIALOG_BOATS (30015)
- #define DIALOG_TRAILERS (30016)
- #define DIALOG_UNIQUE (30017)
- #define DIALOG_RCVEH (30018)
- #define DIALOG_AIRPLANES (30019)
- #define DIALOG_HELICOPTERS (30020)
- #define DIALOG_WEAPONS (30021)
- #define DIALOG_PERSONAL (30022)
- #define DIALOG_VEHICLES2 (30023)
- #define DIALOG_WEAPONS2 (30024)
- #define DIALOG_PERSONAL2 (30025)
- #define DIALOG_HEALTH (30026)
- #define DIALOG_ARMOR (30027)
- #define COLOR_TWWHITE 0xFFFFFFAA
- #define COLOR_TWYELLOW 0xFFFF00AA
- #define COLOR_TWPINK 0xE75480AA
- #define COLOR_TWRED 0xFF0000AA
- #define COLOR_TWBROWN 0x654321AA
- #define COLOR_TWGRAY 0x808080AA
- #define COLOR_TWOLIVE 0x808000AA
- #define COLOR_TWPURPLE 0x800080AA
- #define COLOR_TWTAN 0xD2B48CAA
- #define COLOR_TWAQUA 0x00FFFFAA
- #define COLOR_TWORANGE 0xFF8C00AA
- #define COLOR_TWAZURE 0x007FFFAA
- #define COLOR_TWGREEN 0x008000AA
- #define COLOR_TWBLUE 0x0000FFAA
- #define COLOR_TWBLACK 0x000000AA
- #define COLOR_ORANGE 0xFF8000FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_BLUE1 0x0066FFFF
- #define COL_NICEGREEN "{6EF83C}"
- #define COL_NICERED "{F81414}"
- #define COL_GREY "{AFAFAF}"
- #define COL_ORANGE "{FFAF00}"
- #define COLOR_RED 0xAA3333AA
- #define COLOR_RED2 0xFF0000FF
- #define COLOR_REALRED 0xFF0606FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_VIP 0xC93CCE00
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define COLOR_BLACK 0x000000AA
- #define TEAM_SFPD 0x6699FF00
- #define TEAM_SASP 0xCC993300
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_OOC 0xE0FFFFAA
- #define COLOR_NG 0x9ACD3200
- #define COLOR_TR 0x56B9B900
- #define COLOR_TR2 0x11DCDC00
- #define COLOR_CIA 0x8D8DFFFF
- // COL COLORS
- #define COL_EASY "{FFF1AF}"
- #define COL_WHITE "{FFFFFF}"
- #define COL_BLACK "{0E0101}"
- #define COL_RED "{A80000}"
- #define COL_YELLOW "{F3FF02}"
- #define COL_YELLOW2 "{DAE368}"
- #define COL_BYELLOW "{FFFF80}"
- #define COL_LIME "{B7FF00}"
- #define COL_CYAN "{00FFEE}"
- #define COL_LIGHTBLUE "{00C0FF}"
- #define COL_BLUE "{0049FF}"
- #define COL_MAGENTA "{F300FF}"
- #define COL_VIOLET "{B700FF}"
- #define COL_PINK "{FF00EA}"
- #define COL_MARONE "{A90202}"
- #define COL_CMD "{B8FF02}"
- #define COL_PARAM "{3FCD02}"
- #define COL_SERVER "{AFE7FF}"
- #define COL_VALUE "{A3E4FF}"
- #define COL_RULE "{F9E8B7}"
- #define COL_RULE2 "{FBDF89}"
- #define COL_RWHITE "{FFFFFF}"
- #define COL_LGREEN "{C9FFAB}"
- #define COL_LRED "{FFA1A1}"
- #define COL_LRED2 "{C77D87}"
- #define COL_GREEN "{00BC2E}"
- #define COL_LBLUE "{00A5FF}"
- #define COL_GRAD2 "{BFC0C2}"
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Josh's Ultimate Controller");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MAIN)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_VEHICLES, DSL, ""COL_NICEGREEN"Josh's Ultimate Vehicles", "Air Vehicles\nLand Vehicles\nSea Vehicles\nMisc Vehicles", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- SPD(playerid, DIALOG_WEAPONS, DSL, ""COL_NICEGREEN"Josh's Ultimate Weapons", "Brass Knuckles\nGolf Club\nNite Stick\nKnife\nBaseball Bat\nShovel\nPool Cue\nKatana\nChainsaw\nPurple Dildo\nSmall White Vibrator\nLarge White Vibrator\nSilver Vibrator", "Select", "Cancel");
- return 1;
- }
- case 2:
- {
- SPD(playerid, DIALOG_WEAPONS2, DSL, ""COL_NICEGREEN"Josh's Ultimate Weapons 2", "Flowers\nCane\nGrenade\nTear Gas\nMolotov Cocktail\n9mm\nSilenced 9mm\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nMicro SMG\nMP5\nAK47\nM4\nTec9\nCountry Rifle\nSniper Rifle\nRocket Launcher\nHS Rocket Launcher\nFlamethrower\nMinigun\nParachute", "Select", "Cancel");
- return 1;
- }
- case 3:
- {
- SPD(playerid, DIALOG_PERSONAL, DSL, ""COL_NICEGREEN"Josh's Ultimate Personals", "Full Health\nFull Armor\nCommit Suicide", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_VEHICLES)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_AIRVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Air Vehicles", "Airplanes\nHelicopters", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- SPD(playerid, DIALOG_LANDVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Land Vehicles", "Bikes\nConvertibles\nIndustrial\nLowriders\nOffroad\nPublic Service Vehicles\nSaloons\nSports Vehicles\nStation Wagons", "Select", "Cancel");
- return 1;
- }
- case 2:
- {
- SPD(playerid, DIALOG_SEAVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Sea Vehicles", "Boats", "Select", "Cancel");
- return 1;
- }
- case 3:
- {
- SPD(playerid, DIALOG_MISCVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate Misc Vehicles", "Trailers\nUnique Vehicles\nRC Vehicles", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_AIRVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_AIRPLANES, DSL, ""COL_NICEGREEN"Josh's Ultimate Airplanes", "Skimmer\nRustler\nBeagle\nCropduster\nStuntplane\nShamal\nHydra\nNevada\nAT-400\nAdromada\nDodo", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- SPD(playerid, DIALOG_HELICOPTERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Helicopters", "Cargobob\nHunter\nLeviathan\nMaveric\nNews Maverick\nPolice Maverick\nRaindance\nSeasparrow\nSparrow", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_AIRPLANES)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(460, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(576, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(511, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(512, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(513, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(519, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(520, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(553, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(577, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(592, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(593, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_HELICOPTERS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(548, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(425, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(417, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(487, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(488, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(497, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(563, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(447, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(469, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_LANDVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_BIKES, DSL, ""COL_NICEGREEN"Josh's Ultimate Bike Vehicles", "Bike\nBMX\nMountain Bike\nFaggio\nPizzaboy\nBF-400\nNRG-500\nPCJ-600\nFCR-900\nCop Bike\nFreeway\nWayfarer\nSanchez\nQuad", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- SPD(playerid, DIALOG_CONVERTIBLES, DSL, ""COL_NICEGREEN"Josh's Ultimate Convertible Vehicles", "Comet\nFeltzer\nStallion\nWindsor", "Select", "Cancel");
- return 1;
- }
- case 2:
- {
- SPD(playerid, DIALOG_INDUSTRIAL, DSL, ""COL_NICEGREEN"Josh's Ultimate Industrial Vehicles", "Benson\nBobcat\nBurrito\nBoxville\nBoxburg\nCement Truck\nDFT-30\nFlatbed\nLinerunner\nMule\nNews Van\nPacker\nPetrol Tanker\nPicador\nPony\nRoadtrain\nRumpo\nSadler\nShadler Shit\nTopfun\nTractor\nTrashmaster\nUtility Van\nWalton\nYankee\nYosemite", "Select", "Cancel");
- return 1;
- }
- case 3:
- {
- SPD(playerid, DIALOG_LOWRIDERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Lowrider Vehicles", "Blade\nBroadway\nRemington\nSavanna\nSlamvan\nTohama\nTornado\nVoodoo", "Select", "Cancel");
- return 1;
- }
- case 4:
- {
- SPD(playerid, DIALOG_OFFROAD, DSL, ""COL_NICEGREEN"Josh's Ultimate Offroad Vehicles", "Bandito\nBF Injection\nDune\nHuntley\nLandstalker\nMesa\nMonster\nMonster A\nMonster B\nRancher\nSandking", "Select", "Cancel");
- return 1;
- }
- case 5:
- {
- SPD(playerid, DIALOG_PUBSERVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate PS Vehicles", "Ambulance\nBarracks\nBus\nCabbie\nCoach\nCop Bike\nEnforcer\nFBI Rancher\nFBI Truck\nFiretruck\nFiretruck LA\nPolice Car (LSPD)\nPolice Car (LVPD)\nPolice Car (SFPD)\nRanger\nRhino\nS.W.A.T\nTaxi", "Select", "Cancel");
- return 1;
- }
- case 6:
- {
- SPD(playerid, DIALOG_SALOON, DSL, ""COL_NICEGREEN"Josh's Ultimate Saloon Vehicles", "Admiral\nBloodring Banger\nBravura\nBuccaneer\nCadrona\nClover\nElegant\nElegy\nEmperor\nEsperanto\nFortune\nGlendale Shit\nGlendale\nGreenwood\nHermes\nIntruder\nMajestic\nManana\nMerit\nNebula\nOceanic\nPremier\nPrevion\nPrimo\nSentinel\nStafford\nSultan\nSunrise\nTampa\nVincent\nVirgo\nWillard\nWashington", "Select", "Cancel");
- return 1;
- }
- case 7:
- {
- SPD(playerid, DIALOG_SPORTS, DSL, ""COL_NICEGREEN"Josh's Ultimate Sports Vehicles", "Alpha\nBanshee\nBlista Compact\nBuffalo\nBullet\nCheetah\nClub\nEuros\nFlash\nHotring Racer\nHotring Racer 2\nHotring Racer 3\nInfernus\nJester\nPheonix\nSaber\nSuperGT\nTurismo\nUranus\nZR-350", "Select", "Cancel");
- return 1;
- }
- case 8:
- {
- SPD(playerid, DIALOG_STATWAG, DSL, ""COL_NICEGREEN"Josh's Ultimate Station Wagons", "Moonbeam\nPerenniel\nRegina\nSolair\nStratum", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_SEAVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_BOATS, DSL, ""COL_NICEGREEN"Josh's Ultimate Boats", "Coastgaurd\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSquallo\nTropic", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_MISCVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SPD(playerid, DIALOG_TRAILERS, DSL, ""COL_NICEGREEN"Josh's Ultimate Trailers", "Article Trailer\nArticle Trailer 2\nFreight Flat Trailer\nStreak Trailer\nPetrol Trailer\nArticle Trailer 3\nBaggage Trailer A\nBaggage Trailer B\nUtility Trailer", "Select", "Cancel");
- return 1;
- }
- case 1:
- {
- SPD(playerid, DIALOG_UNIQUE, DSL, ""COL_NICEGREEN"Josh's Ultimate Unique Vehicles", "Baggage\nCaddy\nCamper\nCamper 2\nCombine Harvester\nDozer\nDumper\nForklift\nHotknife\nHustler\nHotdog\nKart\nMower\nMr Whoopee\nRomero\nSecuricar\nStretch\nSweeper\nTowtruck\nTug\nVortex", "Select", "Cancel");
- return 1;
- }
- case 2:
- {
- SPD(playerid, DIALOG_RCVEH, DSL, ""COL_NICEGREEN"Josh's Ultimate RC Vehicles", "RC Bandit\nRC Baron\nRC Raider\nRC Goblin\nRC Tiger\nRC Cam", "Select", "Cancel");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_BIKES)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(509, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(481, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(510, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(462, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(448, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(581, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(522, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(461, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(521, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(523, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(463, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(586, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(468, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(471, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_CONVERTIBLES)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(480, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(533, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(439, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(555, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_INDUSTRIAL)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(499, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(422, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(482, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(498, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(609, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(524, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(578, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(455, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(403, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(414, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(582, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(548, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(443, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(514, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 14:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(600, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 15:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(413, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 16:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(515, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 17:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(440, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 18:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(543, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 19:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(605, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 20:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(459, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 21:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(531, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 22:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(408, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 23:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(552, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 24:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(478, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 25:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(456, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 26:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(554, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_LOWRIDERS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(536, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(575, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(534, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(567, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(535, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(566, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(576, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(412, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_OFFROAD)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(568, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(424, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(573, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(579, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(400, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(500, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(444, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(556, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(557, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(470, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(489, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(505, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(495, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_PUBSERVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(416, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(433, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(431, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(438, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(437, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(523, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(427, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(490, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(528, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(407, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(544, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(596, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(598, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(597, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 14:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(599, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }case 15:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(432, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 16:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(601, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 17:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(420, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_SALOON)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(445, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(504, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(401, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(518, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(527, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(542, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(507, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(562, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(585, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(419, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(526, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(604, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(466, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(492, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 14:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(474, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 15:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(546, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 16:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(517, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 17:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(410, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 18:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(551, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 19:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(516, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 20:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(467, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 21:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(426, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 22:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(436, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 23:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(547, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 24:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(405, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 25:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(580, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 26:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(560, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 27:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(550, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 28:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(549, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 29:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(540, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 30:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(491, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 31:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(529, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 32:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(421, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_SPORTS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(602, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(429, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(496, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(402, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(541, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(415, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(589, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(587, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(565, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(494, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(502, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(503, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(411, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(559, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 14:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(603, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 15:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(475, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 16:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(506, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 17:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(451, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 18:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(558, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 19:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(477, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_STATWAG)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(418, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(404, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(479, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(458, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(561, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_BOATS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(472, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(473, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(493, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(595, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(484, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(430, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(453, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(452, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(446, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(454, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_TRAILERS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(435, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(450, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(569, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(570, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(584, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(591, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(606, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(607, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(611, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_UNIQUE)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(485, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(457, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(483, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(508, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(532, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(486, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 6:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(406, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 7:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(530, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 8:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(434, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 9:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(545, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 10:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(588, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 11:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(571, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 12:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(572, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 13:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(423, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 14:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(442, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 15:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(428, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 16:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(409, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 17:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(574, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 18:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(449, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 19:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(525, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 20:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(583, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 21:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(539, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_RCVEH)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(441, posx, posy-5, posz+2, rotx, 0, 0, -1);
- PutPlayerInVehicle(playerid, 441, 0);
- return 1;
- }
- case 1:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(464, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 2:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(465, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 3:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(501, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 4:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(564, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- case 5:
- {
- new Float:posx, Float:posy, Float:posz, Float:rotx;
- rotx = GetPlayerFacingAngle(playerid, rotx);
- GetPlayerPos(playerid, posx, posy, posz);
- CreateVehicle(594, posx, posy-5, posz+2, rotx, 0, 0, -1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_WEAPONS)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 1, 999999);
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 2, 999999);
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 3, 999999);
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 4, 999999);
- return 1;
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 5, 999999);
- return 1;
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 6, 999999);
- return 1;
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 7, 999999);
- return 1;
- }
- case 7:
- {
- GivePlayerWeapon(playerid, 8, 999999);
- return 1;
- }
- case 8:
- {
- GivePlayerWeapon(playerid, 9, 999999);
- return 1;
- }
- case 9:
- {
- GivePlayerWeapon(playerid, 10, 999999);
- return 1;
- }
- case 10:
- {
- GivePlayerWeapon(playerid, 11, 999999);
- return 1;
- }
- case 11:
- {
- GivePlayerWeapon(playerid, 12, 999999);
- return 1;
- }
- case 12:
- {
- GivePlayerWeapon(playerid, 13, 999999);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_WEAPONS2)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 14, 999999);
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 15, 999999);
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 16, 999999);
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 17, 999999);
- return 1;
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 18, 999999);
- return 1;
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 22, 999999);
- return 1;
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 23, 999999);
- return 1;
- }
- case 7:
- {
- GivePlayerWeapon(playerid, 24, 999999);
- return 1;
- }
- case 8:
- {
- GivePlayerWeapon(playerid, 25, 999999);
- return 1;
- }
- case 9:
- {
- GivePlayerWeapon(playerid, 26, 999999);
- return 1;
- }
- case 10:
- {
- GivePlayerWeapon(playerid, 27, 999999);
- return 1;
- }
- case 11:
- {
- GivePlayerWeapon(playerid, 28, 999999);
- return 1;
- }
- case 12:
- {
- GivePlayerWeapon(playerid, 29, 999999);
- return 1;
- }
- case 13:
- {
- GivePlayerWeapon(playerid, 30, 999999);
- return 1;
- }
- case 14:
- {
- GivePlayerWeapon(playerid, 31, 999999);
- return 1;
- }
- case 15:
- {
- GivePlayerWeapon(playerid, 32, 999999);
- return 1;
- }
- case 16:
- {
- GivePlayerWeapon(playerid, 33, 999999);
- return 1;
- }
- case 17:
- {
- GivePlayerWeapon(playerid, 34, 999999);
- return 1;
- }
- case 18:
- {
- GivePlayerWeapon(playerid, 35, 999999);
- return 1;
- }
- case 19:
- {
- GivePlayerWeapon(playerid, 36, 999999);
- return 1;
- }
- case 20:
- {
- GivePlayerWeapon(playerid, 37, 999999);
- return 1;
- }
- case 21:
- {
- GivePlayerWeapon(playerid, 38, 999999);
- return 1;
- }
- case 22:
- {
- GivePlayerWeapon(playerid, 46, 1);
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_PERSONAL)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerHealth(playerid, 100.0);
- return 1;
- }
- case 1:
- {
- SetPlayerArmour(playerid, 100.0);
- return 1;
- }
- case 2:
- {
- SetPlayerHealth(playerid, 0.0);
- SetPlayerArmour(playerid, 0.0);
- return 1;
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:uc(playerid, params[])
- {
- SPD(playerid, DIALOG_MAIN, DSL, ""COL_NICEGREEN"Josh's Ultimate Controller", "Vehicles\nWeapons\nWeapons 2\nPersonal", "Select", "Cancel");
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment