Jump to content
  • 0

Cum fac sa dispara vehiculele spawnate cu comenzile /v si /car sa dispara.


[.E.m.O.]K1DDU

Question

Salut,

Am o intrebare, cum fac ca vehiculele care se spawneaza cu comenzile /car si /v sa dispara daca nu sunt folosite de nici un jucator?

Mersi anticipat.


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Asta stiu si eu sa dau Reboot... dar de ex infiecare zi sunt multe masini ca sunt multi jucatori care spawneaza frate.......... :| acuma ce dau tot reboot dupa pleaca toti :|


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

Asta stiu si eu sa dau Reboot... dar de ex infiecare zi sunt multe masini ca sunt multi jucatori care spawneaza frate.......... :| acuma ce dau tot reboot dupa pleaca toti :|

Ia Ladmin frate, are comenzi: "/car" si mai adaugi tu daca vrei "/v" si dispar dupa 10-15 secunde parca..depinde, eo l-am setat...

Link to comment
Share on other sites

Pai da frate am LAdmin,

Si da. Dupa ce un jucator spawneaza un vehicul se plimba cu el si dupa iese si spawneaza alta vreau sa dispara pe cea pe care a folosito de prima data. (Cand spawneaza alta)

/car

[pawn]dcmd_car(playerid,params[]) {

if(PlayerInfo[playerid][Level] >= 0) {

    new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); tmp3 = strtok(params,Index);

    if(!strlen(tmp)) return SendClientMessage(playerid, red, "FOLOSESTE: /car [Modelid/Nume] [Culoare1] [Culoare2]");

new car, colour1, colour2, string[128];

  if(!IsNumeric(tmp)) car = GetVehicleModelIDFromName(tmp); else car = strval(tmp);

if(car < 400 || car > 611) return  SendClientMessage(playerid, red, "EROARE: Modelul vehiculului necunoscut");

if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);

if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);

if(PlayerInfo[playerid][pCar] != -1 && !IsPlayerAdmin(playerid) ) CarDeleter(PlayerInfo[playerid][pCar]);

new LVehicleID,Float:X,Float:Y,Float:Z, Float:Angle,int1; GetPlayerPos(playerid, X,Y,Z); GetPlayerFacingAngle(playerid,Angle);  int1 = GetPlayerInterior(playerid);

LVehicleID = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1); LinkVehicleToInterior(LVehicleID,int1);

PlayerInfo[playerid][pCar] = LVehicleID;

CMDMessageToAdmins(playerid,"CAR");

format(string, sizeof(string), "%s spawned a \"%s\" (Model:%d) colour (%d, %d), at %0.2f, %0.2f, %0.2f", pName(playerid), VehicleNames[car-400], car, colour1, colour2, X, Y, Z);

        SaveToFile("CarSpawns",string);

format(string, sizeof(string), "Tu ai spwanat un \"%s\" (Model:%d) Culoare (%d, %d)", VehicleNames[car-400], car, colour1, colour2);

return SendClientMessage(playerid,lightblue, string);

} else return SendClientMessage(playerid,red,"EROARE: Trebuie sa fi Administrator Level 0 pentru a folosi aceasta comanda");

}[/pawn]

/v

[pawn]if (strcmp(cmdtext, "/V", true) == 0)

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection ","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

    return 1;[/pawn]

Dialog masini de  la /v

[pawn]if(dialogid == CARMENU)

{

if(response)

{

  if(listitem == 0) // Bikes

  {

ShowPlayerDialog(playerid, CARMENU+1, DIALOG_STYLE_LIST, "Bikes", "BF-400\nBike\nBMX\nHPV1000\nFaggio\nFCR-900\nFreeway\nMountain Bike\nNRG-500\nPCJ-600\nPizzaboy\nSanchez\nWayfarer\nQuad\nBack", "Select", "Cancel");

}

if(listitem == 1) // Cars [A-E]

{

ShowPlayerDialog(playerid, CARMENU+2, DIALOG_STYLE_LIST, "Cars 1 [A-E]", "Admiral\nAlpha\nAmbulance\nBaggage\nBandito\nBanshee\nBarracks\nBenson\nBerkley's RC Van\nBF Injection\nBlade\nBlista Compact\nBloodring Banger\nBobcat\nBoxville 1\nBoxville 2\nBravura\nBroadway\nBuccaneer\nBuffalo\nBullet\nBurrito\nBus\nCabbie\nCaddy\nCadrona\nCamper\nCement Truck\nCheetah\nClover\nClub\nCoach\nCombine Harvester\nComet\nDFT-30\nDozer\nElegant\nElegy\nEmperor\nEsperanto\nEuros\nBack", "Select", "Cancel");

}

if(listitem == 2) // Cars 2 [F-P]

{

ShowPlayerDialog(playerid, CARMENU+3, DIALOG_STYLE_LIST, "Cars 2 [F-P]", "FBI Rancher\nFBI Truck\nFeltzer\nFiretruck 1\nFiretruck 2\nFlash\nFlatbed\nForklift\nFortune\nGlendale 1\nGlendale 2\nGreenwood\nHermes\nHotdog\nHotknife\nHotring Racer 1\nHotring Racer 2\nHotring Racer 3\nHuntley\nHustler\nInfernus\nIntruder\nJester\nJourney\nKart\nLandstalker\nLinerunner\nMajestic\nManana\nMerit\nMesa\nMoonbeam\nMower\nMr Whoopee\nMule\nNebula\nNewsvan\nOceanic\nPacker\nBack", "Select", "Cancel");

}

if(listitem == 3) // Cars 3 [P-S]

{

ShowPlayerDialog(playerid, CARMENU+4, DIALOG_STYLE_LIST, "Cars 3 [P-S]", "Patriot\nPerenniel\nPetrol Tanker\nPhoenix\nPicador\nPolice Car (LSPD)\nPolice Car (SFPD)\nPolice Car (LVPD)\nPolice Ranger\nPolice Truck (Enforcer)\nPolice Truck (SWAT)\nPony\nPremier\nPrevion\nPrimo\nRancher\nRegina\nRemington\nRhino\nRoadtrain\nRomero\nRumpo\nSabre\nSadler 1\nSadler 2\nSandking\nSavanna\nSecuricar\nSentinel\nSlamvan\nSolair\nStafford\nStallion\nStratum\nStretch\nSultan\nSunrise\nBack", "Select", "Cancel");

}

if(listitem == 4) // Cars 4 [s-Z]

{

ShowPlayerDialog(playerid, CARMENU+5, DIALOG_STYLE_LIST, "Cars 4 [s-Z]", "Super GT\nSweeper\nTahoma\nTampa\nTaxi\nTornado\nTowtruck\nTractor\nTrashmaster\nTug\nTurismo\nUranus\nUtility Van\nVincent\nVirgo\nVoodoo\nWalton\nWashington\nWilliard\nWindsor\nYankee\nYosemite\nZR-350\nBack", "Select", "Cancel");

}

if(listitem == 5) // Helicopters

{

ShowPlayerDialog(playerid, CARMENU+6, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nHunter\nLeviathan\nMaverick\nPolice Maverick\nNews Chopper\nRaindance\nSparrow\nSea Sparrow\nBack", "Select", "Cancel");

  }

if(listitem == 6) // Planes

{

ShowPlayerDialog(playerid, CARMENU+7, DIALOG_STYLE_LIST, "Planes", "Andromada\nAT-400\nBeagle\nCropduster\nDodo\nHydra\nNevada\nRustler\nShamal\nSkimmer\nStuntplane\nBack", "Select", "Cancel");

  }

if(listitem == 7) // Boats

{

ShowPlayerDialog(playerid, CARMENU+8, DIALOG_STYLE_LIST, "Boats", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nPredator\nReefer\nSpeeder\nSquallo\nTropic\nBack", "Select", "Cancel");

  }

if(listitem == 8) // Trains

{

ShowPlayerDialog(playerid, CARMENU+9, DIALOG_STYLE_LIST, "Trains", "Brown Streak\nFreight Box Trailer\nFreight Flat Trailer\nFreight\nStreak Trailer\nTram\nBack", "Select", "Cancel");

  }

if(listitem == 9) // Trailers

{

ShowPlayerDialog(playerid, CARMENU+10, DIALOG_STYLE_LIST, "Trailers", "Article Trailer 1\nArticle Trailer 2\nArticle Trailer 3\nBaggage Trailer (A)\nBaggage Trailer (B)\nFarm Trailer\nPetrol Trailer\nTug Stairs Trailer\nUtility Trailer\nBack", "Select", "Cancel");

  }

if(listitem == 10) // RC Vehicles + Vortex

{

ShowPlayerDialog(playerid, CARMENU+11, DIALOG_STYLE_LIST, "RC Vehicles + Vortex", "RC Bandit\nRC Cam\nRC Tiger\nRC Baron\nRC Goblin\nRC Raider\nVortex\nBack", "Select", "Cancel");

  }

}

return 1;

}

/*===================================Bikes===================================*/

if(dialogid == CARMENU+1) // Bikes

{

if(response)

{

if(listitem == 0) // BF-400

{

CreateVehicle(581, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Bike

{

CreateVehicle(509, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) //  BMX

{

CreateVehicle(481, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) //  HPV1000

{

CreateVehicle(523, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) //  Faggio

{

CreateVehicle(462, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // FCR-900

{

CreateVehicle(521, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Freeway

  {

  CreateVehicle(463, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Mountain Bike

  {

  CreateVehicle(510, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // NRG-500

  {

  CreateVehicle(522, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // PCJ-600

  {

  CreateVehicle(461, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Pizzaboy

  {

  CreateVehicle(448, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Sanchez

  {

  CreateVehicle(468, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 12) // Wayfarer

  {

  CreateVehicle(586, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 13) // Quad

  {

  CreateVehicle(471, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 14) // Back

  {

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//==================================Cars 1==================================//

if(dialogid == CARMENU+2) // Cars 1

{

if(response)

{

if(listitem == 0) // Admiral

{

CreateVehicle(445, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Alpha

{

CreateVehicle(602, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Ambulance

{

CreateVehicle(416, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Baggage

{

CreateVehicle(485, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Bandito

{

CreateVehicle(568, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Banshee

{

CreateVehicle(429, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Barracks

{

CreateVehicle(433, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Benson

{

CreateVehicle(499, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Berkley's RC Van

{

CreateVehicle(459, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) //BF Injection

{

CreateVehicle(424, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Blade

{

CreateVehicle(536, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Blista Compact

{

CreateVehicle(496, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 12) // Bloodring Banger

{

CreateVehicle(504, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 13) // Bobcat

{

CreateVehicle(422, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 14) // Boxville 1

{

CreateVehicle(609, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 15) // Boxville 2

{

CreateVehicle(498, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 16) // Bravura

{

CreateVehicle(401, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 17) // Broadway

{

CreateVehicle(575, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 18) // Buccaneer

{

CreateVehicle(518, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 19) // Buffalo

{

CreateVehicle(402, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 20) // Bullet

{

CreateVehicle(541, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 21) // Burrito

{

CreateVehicle(482, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 22) // Bus

{

CreateVehicle(431, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 23) // Cabbie

{

CreateVehicle(438, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 24) // Caddy

{

CreateVehicle(457, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 25) // Cadrona

{

CreateVehicle(527, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 26) // Camper

{

CreateVehicle(483, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 27) // Cement Truck

{

CreateVehicle(524, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 28) // Cheetah

{

CreateVehicle(415, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 29) // Clover

{

CreateVehicle(542, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 30) // Club

{

CreateVehicle(589, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 31) // Coach

{

CreateVehicle(437, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 32) // Combine Harvester

{

CreateVehicle(532, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 33) // Comet

{

CreateVehicle(480, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 34) // DFT-30

{

CreateVehicle(578, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 35) // Dozer

{

CreateVehicle(486, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 36) // Elegant

{

CreateVehicle(507, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 37) // Elegy

{

CreateVehicle(562, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 38) // Emperor

{

CreateVehicle(585, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 39) // Esperanto

{

CreateVehicle(419, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 40) // Euros

{

CreateVehicle(587, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 41) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//==================================Cars 2==================================//

if(dialogid == CARMENU+3) // Cars 2

{

if(response)

{

if(listitem == 0) // FBI Rancher

{

CreateVehicle(490, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // FBI Truck

{

CreateVehicle(528, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Feltzer

{

CreateVehicle(533, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Firetruck 1

{

CreateVehicle(544, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Firetruck 2

{

CreateVehicle(407, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Flash

{

CreateVehicle(565, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Flatbed

{

CreateVehicle(455, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Forklift

{

CreateVehicle(530, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Fortune

{

CreateVehicle(526, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Glendale 1

{

CreateVehicle(466, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Glendale 2

{

CreateVehicle(604, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Greenwood

{

CreateVehicle(492, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 12) // Hermes

{

CreateVehicle(474, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 13) // Hotdog

{

CreateVehicle(588, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 14) // Hotknife

{

CreateVehicle(434, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 15) // Hotring Racer 1

{

CreateVehicle(502, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 16) // Hotring Racer 2

{

CreateVehicle(503, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 17) // Hotring Racer 3

{

CreateVehicle(494, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 18) // Huntley

{

CreateVehicle(579, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 19) // Hustler

{

CreateVehicle(545, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 20) // Infernus

{

CreateVehicle(411, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 21) // Intruder

{

CreateVehicle(546, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 22) // Jester

{

CreateVehicle(559, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 23) // Journey

{

CreateVehicle(508, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 24) // Kart

{

CreateVehicle(571, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 25) // Landstalker

{

CreateVehicle(400, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 26) // Linerunner

{

CreateVehicle(403, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 27) // Majestic

{

CreateVehicle(517, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 28) // Manana

{

CreateVehicle(410, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 29) // Merit

{

CreateVehicle(551, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 30) // Mesa

{

CreateVehicle(500, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 31) // Moonbeam

{

CreateVehicle(418, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 32) // Mower

{

CreateVehicle(572, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 33) // Mr Whoopee

{

CreateVehicle(414, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 34) // Mule

{

CreateVehicle(423, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 35) // Nebula

{

CreateVehicle(516, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 36) // Newsvan

{

CreateVehicle(582, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 37) // Oceanic

{

CreateVehicle(467, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 38) // Packer

{

CreateVehicle(443, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 39) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//==================================Cars 3==================================//

if(dialogid == CARMENU+4) // Cars 3

{

if(response)

{

if(listitem == 0) // Patriot

{

CreateVehicle(470, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Perenniel

{

CreateVehicle(404, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Petrol Tanker

{

CreateVehicle(514, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Phoenix

{

CreateVehicle(603, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Picador

{

CreateVehicle(600, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Police Car LSPD

{

CreateVehicle(596, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Police Car SFPD

{

CreateVehicle(597, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Police Car LVPD

{

CreateVehicle(598, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Police Ranger

{

CreateVehicle(599, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Police Truck (Enforcer)

{

CreateVehicle(427, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Police Truck (SWAT)

{

CreateVehicle(601, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Pony

{

CreateVehicle(413, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 12) // Premier

{

CreateVehicle(426, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 13) // Previon

{

CreateVehicle(436, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 14) // Primo

{

CreateVehicle(547, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 15) // Rancher

{

CreateVehicle(489, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 16) // Regina

{

CreateVehicle(479, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 17) // Remington

{

CreateVehicle(534, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 18) // Rhino

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(432, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 19) // Roadtrain

{

CreateVehicle(515, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 20) // Romero

{

CreateVehicle(442, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 21) // Rumpo

{

CreateVehicle(440, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 22) // Sabre

{

CreateVehicle(575, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 23) // Sadler 1

{

CreateVehicle(543, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 24) // Sadler 2

{

CreateVehicle(605, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 25) // Sandking

{

CreateVehicle(495, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 26) // Savanna

{

CreateVehicle(567, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 27) // Securicar

{

CreateVehicle(428, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 28) // Sentinel

{

CreateVehicle(405, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 29) // Slamvan

{

CreateVehicle(535, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 30) // Solair

{

CreateVehicle(458, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 31) // Stafford

{

CreateVehicle(580, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 32) // Stallion

{

CreateVehicle(439, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 33) // Stratum

{

CreateVehicle(561, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 34) // Stretch

{

CreateVehicle(409, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 35) // Sultan

{

CreateVehicle(560, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 36) // Sunrise

{

CreateVehicle(550, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 37) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//==================================Cars 4==================================//

if(dialogid == CARMENU+5) // Cars 4

{

if(response)

{

if(listitem == 0) // Super GT

{

CreateVehicle(506, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Sweeper

{

CreateVehicle(574, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Tahoma

{

CreateVehicle(566, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Tampa

{

CreateVehicle(549, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Taxi

{

CreateVehicle(420, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Tornado

{

CreateVehicle(576, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Towtruck

{

CreateVehicle(525, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Tractor

{

CreateVehicle(531, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Trashmaster

{

CreateVehicle(408, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Tug

{

CreateVehicle(583, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Turismo

{

CreateVehicle(451, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Uranus

{

CreateVehicle(558, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 12) // Utility Van

{

CreateVehicle(552, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 13) // Vincent

{

CreateVehicle(540, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 14) // Virgo

{

CreateVehicle(491, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 15) // Voodoo

{

CreateVehicle(412, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 16) // Walton

{

CreateVehicle(478, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 17) // Washington

{

CreateVehicle(521, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 18) // Williard

{

CreateVehicle(529, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 19) // Windsor

{

CreateVehicle(555, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 20) // Yankee

{

CreateVehicle(456, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 21) // Yosemite

{

CreateVehicle(554, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 22) // ZR-350

{

CreateVehicle(477, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 23) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//=================================Helicopters=================================//

if(dialogid == CARMENU+6) // Helicopters

{

if(response)

{

if(listitem == 0) // Cargobob

{

CreateVehicle(548, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Hunter

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(425, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Leviathan

{

CreateVehicle(417, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Maverick

{

CreateVehicle(487, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Police Maverick

{

CreateVehicle(497, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // News Chopper

{

CreateVehicle(488, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Raindance

{

CreateVehicle(563, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Sparrow

{

CreateVehicle(447, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Sea Sparrow

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(469, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//===================================Planes===================================//

if(dialogid == CARMENU+7) // Planes

{

if(response)

{

if(listitem == 0) // Andromada

{

CreateVehicle(592, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // At-400

{

CreateVehicle(577, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Beagle

{

CreateVehicle(511, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Cropduster

{

CreateVehicle(512, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Dodo

{

CreateVehicle(593, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Hydra

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(520, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Nevada

{

CreateVehicle(553, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Rustler

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(476, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Shamal

{

CreateVehicle(519, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Skimmer

{

CreateVehicle(460, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Stuntplane

{

CreateVehicle(513, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 11) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//===================================Boats===================================//

if(dialogid == CARMENU+8) // Boats

{

if(response)

{

if(listitem == 0) // Coastguard

{

CreateVehicle(472, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Dinghy

{

CreateVehicle(473, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Jetmax

{

CreateVehicle(493, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Launch

{

CreateVehicle(595, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Marquis

{

CreateVehicle(484, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Predator

{

/*if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF60000AA, "You Need To Be An Admin To Spawn This Vehicle!");

else */

CreateVehicle(430, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Reefer

{

CreateVehicle(453, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Speeder

{

CreateVehicle(452, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Squallo

{

CreateVehicle(446, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Tropic

{

CreateVehicle(454, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 10) // Back

{

  ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//==================================Trains==================================//

if(dialogid == CARMENU+9) // Trains

{

if(response)

{

if(listitem == 0) // Brown Streak

{

AddStaticVehicle(537, X+6,Y,Z+1, Angle, random(127), random(127)); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Freight Box Trailer

{

CreateVehicle(590, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Freight Flat Trailer

{

CreateVehicle(569, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Freight

{

AddStaticVehicle(538, X+6,Y,Z+1, Angle, random(127), random(127)); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Streak Trailer

{

CreateVehicle(570, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Tram

{

AddStaticVehicle(449, X+6,Y,Z+1, Angle, random(127), random(127)); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//=================================Trailers=================================//

if(dialogid == CARMENU+10) // Trailers

{

if(response)

{

if(listitem == 0) // Article Trailer 1

{

CreateVehicle(435, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // Article Trailer 2

{

CreateVehicle(450, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // Article Trailer 3

{

CreateVehicle(591, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // Baggage Trailer (A)

{

CreateVehicle(606, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // Baggage Trailer (B)

{

CreateVehicle(607, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // Farm Trailer

{

CreateVehicle(610, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Petrol Trailer

{

CreateVehicle(584, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Tug Stairs Trailer

{

CreateVehicle(608, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 8) // Utility Trailer

{

CreateVehicle(611, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 9) // Back

{

            ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}

//===============================RC Vehicles + Vortex================================//

if(dialogid == CARMENU+11) // RC Vehicles + Vortex

{

if(response)

{

if(listitem == 0) // RC Bandit

{

CreateVehicle(441, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 1) // RC Cam

{

CreateVehicle(594, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 2) // RC Tiger

{

CreateVehicle(564, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 3) // RC Baron

{

CreateVehicle(464, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 4) // RC Goblin

{

CreateVehicle(501, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 5) // RC Raider

{

CreateVehicle(465, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 6) // Vortex

{

CreateVehicle(539, X+6,Y,Z+1, Angle, random(127), random(127), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),gINT);

}

if(listitem == 7) // Back

{

ShowPlayerDialog(playerid, CARMENU, DIALOG_STYLE_LIST, "Vehicle Selection Menu By [RIZ]Kira","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [s-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex", "Select", "Cancel");

}

}

return 1;

}[/pawn]


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.