Help me!!!! with dialog menu!!!!
#1

hello i made a car spawn menu and it works fine.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);
	
	if(dialogid == carmenu1)
	{
	    if(response)
	    {
	        if(listitem == 0)   // Admiral
	        {
	            CreateVehicle(445, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Admiral, look around as you don't see the car!");
			}
			if(listitem == 1)   // Alpha
			{
			    CreateVehicle(602, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Alpha, look around as you don't see the car!");
			}
			if(listitem == 2)   // Baggage
			{
			    CreateVehicle(485, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Baggage, look around as you don't see the car!");
			}
			if(listitem == 3)   // Bandito
			{
			    CreateVehicle(568, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bandito, look around as you don't see the car!");
			}
			if(listitem == 4)   // Banshee
			{
			    CreateVehicle(429, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Banshee, look around as you don't see the car!");
			}
			if(listitem == 5)   // Damaged Glendale
			{
			    CreateVehicle(604, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Glendale, look around as you don't see the car!");
			}
			if(listitem == 6)   // Damaged Sadle
			{
			    CreateVehicle(605, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Sadle, look around as you don't see the car!");
			}
			if(listitem == 7)   // BF Injection
			{
			    CreateVehicle(424, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a BF Injection, look around as you don't see the car!");
			}
			if(listitem == 8)   // Blade
			{
			    CreateVehicle(536, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blade, look around as you don't see the car!");
			}
			if(listitem == 9)   // Blista Compact
			{
			    CreateVehicle(496, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blista Compact, look around as you don't see the car!");
			}
			if(listitem == 10)  // Bloodring Banger
			{
			    CreateVehicle(504, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bloodring Banger, look around as you don't see the car!");
			}
			if(listitem == 11)  //Bobcat
			{
			    CreateVehicle(422, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bobcat, look around as you don't see the car!");
			}
			if(listitem == 12)  // Bravura
			{
			    CreateVehicle(401, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bravura, look around as you don't see the car!");
			}
			if(listitem == 13)  // Broadway
			{
			    CreateVehicle(575, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Broadway, look around as you don't see the car!");
			}
			if(listitem == 14)  // Buccaneer
			{
			    CreateVehicle(518, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buccaneer, look around as you don't see the car!");
			}
			if(listitem == 15)  // Buffalo
			{
			    CreateVehicle(402, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buffalo, look around as you don't see the car!");
			}
			if(listitem == 16)  // Bullet
			{
				CreateVehicle(541, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bullet, look around as you don't see the car!");
			}
			if(listitem == 17)  // Caddy
			{
			    CreateVehicle(457, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Caddy, look around as you don't see the car!");
			}
			if(listitem == 18)  // Cadrona
			{
			    CreateVehicle(527, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cadrona, look around as you don't see the car!");
			}
			if(listitem == 19)  // Camper
			{
			    CreateVehicle(483, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Camper, look around as you don't see the car!");
			}
			if(listitem == 20)  // Cheetah
			{
			    CreateVehicle(415, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cheetah, look around as you don't see the car!");
			}
			if(listitem == 21)  // Clover
			{
			    CreateVehicle(542, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Clover, look around as you don't see the car!");
			}
			if(listitem == 22)  // Club
			{
			    CreateVehicle(589, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Club, look around as you don't see the car!");
			}
			if(listitem == 23)  // Comet
			{
			    CreateVehicle(480, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Comet, look around as you don't see the car!");
			}
			if(listitem == 24)  // Elegant
			{
			    CreateVehicle(507, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegant, look around as you don't see the car!");
			}
			if(listitem == 25)  // Elegy
			{
			    CreateVehicle(562, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegy, look around as you don't see the car!");
			}
			if(listitem == 26)  // Emperor
			{
			    CreateVehicle(585, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Emperor, look around as you don't see the car!");
			}
			if(listitem == 27)  // Esperanto
			{
				CreateVehicle(419, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Esperanto, look around as you don't see the car!");
			}
			if(listitem == 28)  // Euros
			{
			    CreateVehicle(587, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Euros, look around as you don't see the car!");
			}
			if(listitem == 29)  // Feltzer
			{
			    CreateVehicle(533, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Feltzer, look around as you don't see the car!");
			}
			if(listitem == 30)  // Flash
			{
			    CreateVehicle(565, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Flash, look around as you don't see the car!");
			}
			if(listitem == 31)  // Fortune
			{
			    CreateVehicle(526, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Fortune, look around as you don't see the car!");
			}
		}
		return 1;
but as i make a second menu.

Код:
	}
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);

	if(dialogid == carmenu2)
	{
	    if(response)
	    {
	        if(listitem == 32)   // Glendale
	        {
	            CreateVehicle(466, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Glendale, look around as you don't see the car!");
			}
			if(listitem == 1)   // Greenwood
			{
			    CreateVehicle(492, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Greenwood, look around as you don't see the car!");
			}
			if(listitem == 2)   // Hermes
			{
			    CreateVehicle(474, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hermes, look around as you don't see the car!");
			}
			if(listitem == 3)   // Hotknife
			{
			    CreateVehicle(434, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotknife, look around as you don't see the car!");
			}
			if(listitem == 4)   // Hotring Racer
			{
			    CreateVehicle(502, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotring Racer, look around as you don't see the car!");
			}
			if(listitem == 5)   // Huntley
			{
			    CreateVehicle(579, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Huntley, look around as you don't see the car!");
			}
			if(listitem == 6)   // Hustler
			{
			    CreateVehicle(545, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hustler, look around as you don't see the car!");
			}
			if(listitem == 7)   // Infernus
			{
			    CreateVehicle(411, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Infernus, look around as you don't see the car!");
			}
			if(listitem == 8)   // Intruder
			{
			    CreateVehicle(546, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Intruder, look around as you don't see the car!");
			}
			if(listitem == 9)   // Jester
			{
			    CreateVehicle(559, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Jester, look around as you don't see the car!");
			}
			if(listitem == 10)  // Kart
			{
			    CreateVehicle(571, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Kart, look around as you don't see the car!");
			}
			if(listitem == 11)  // Bulletfree Walton
			{
			    CreateVehicle(478, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bulletfree Walton, look around as you don't see the car!");
			}
			if(listitem == 12)  // Landstalker
			{
			    CreateVehicle(400, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Landstalker, look around as you don't see the car!");
			}
			if(listitem == 13)  // Rancher
			{
			    CreateVehicle(489, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Rancher, look around as you don't see the car!");
			}
			if(listitem == 14)  // Majestic
			{
			    CreateVehicle(517, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Majestic, look around as you don't see the car!");
			}
			if(listitem == 15)  // Manana
			{
			    CreateVehicle(410, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Manana, look around as you don't see the car!");
			}
			if(listitem == 16)  // Merit
			{
				CreateVehicle(551, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Merit, look around as you don't see the car!");
			}
			if(listitem == 17)  // Mesa
			{
			    CreateVehicle(500, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Mesa, look around as you don't see the car!");
			}
			if(listitem == 18)  // Monster
			{
			    CreateVehicle(444, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster, look around as you don't see the car!");
			}
			if(listitem == 19)  // Monster A
			{
			    CreateVehicle(556, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster A, look around as you don't see the car!");
			}
			if(listitem == 20)  // Monster B
			{
			    CreateVehicle(557, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster B, look around as you don't see the car!");
			}
			if(listitem == 21)  // Nebula
			{
			    CreateVehicle(516, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Nebula, look around as you don't see the car!");
			}
			if(listitem == 22)  // Oceanic
			{
			    CreateVehicle(467, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Oceanic, look around as you don't see the car!");
			}
			if(listitem == 23)  // Perennial
			{
			    CreateVehicle(404, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Perennial, look around as you don't see the car!");
			}
			if(listitem == 24)  // Phoenix
			{
			    CreateVehicle(603, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Phoenix, look around as you don't see the car!");
			}
			if(listitem == 25)  // Picador
			{
			    CreateVehicle(600, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Picador, look around as you don't see the car!");
			}
			if(listitem == 26)  // Premier
			{
			    CreateVehicle(426, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Premier, look around as you don't see the car!");
			}
			if(listitem == 27)  // Previon
			{
				CreateVehicle(436, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Previon, look around as you don't see the car!");
			}
			if(listitem == 28)  // Primo
			{
			    CreateVehicle(547, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Primo, look around as you don't see the car!");
			}
			if(listitem == 29)  // Regina
			{
			    CreateVehicle(479, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Regina, look around as you don't see the car!");
			}
			if(listitem == 30)  // Remmington
			{
			    CreateVehicle(534, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Remmington, look around as you don't see the car!");
			}
			if(listitem == 31)  // Romero
			{
			    CreateVehicle(442, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Romero, look around as you don't see the car!");
			}
		}
		return 1;
	}
	return 0;
}
then it looks like this:

Код:
{
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);
	
	if(dialogid == carmenu1)
	{
	    if(response)
	    {
	        if(listitem == 0)   // Admiral
	        {
	            CreateVehicle(445, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Admiral, look around as you don't see the car!");
			}
			if(listitem == 1)   // Alpha
			{
			    CreateVehicle(602, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Alpha, look around as you don't see the car!");
			}
			if(listitem == 2)   // Baggage
			{
			    CreateVehicle(485, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Baggage, look around as you don't see the car!");
			}
			if(listitem == 3)   // Bandito
			{
			    CreateVehicle(568, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bandito, look around as you don't see the car!");
			}
			if(listitem == 4)   // Banshee
			{
			    CreateVehicle(429, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Banshee, look around as you don't see the car!");
			}
			if(listitem == 5)   // Damaged Glendale
			{
			    CreateVehicle(604, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Glendale, look around as you don't see the car!");
			}
			if(listitem == 6)   // Damaged Sadle
			{
			    CreateVehicle(605, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Sadle, look around as you don't see the car!");
			}
			if(listitem == 7)   // BF Injection
			{
			    CreateVehicle(424, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a BF Injection, look around as you don't see the car!");
			}
			if(listitem == 8)   // Blade
			{
			    CreateVehicle(536, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blade, look around as you don't see the car!");
			}
			if(listitem == 9)   // Blista Compact
			{
			    CreateVehicle(496, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blista Compact, look around as you don't see the car!");
			}
			if(listitem == 10)  // Bloodring Banger
			{
			    CreateVehicle(504, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bloodring Banger, look around as you don't see the car!");
			}
			if(listitem == 11)  //Bobcat
			{
			    CreateVehicle(422, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bobcat, look around as you don't see the car!");
			}
			if(listitem == 12)  // Bravura
			{
			    CreateVehicle(401, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bravura, look around as you don't see the car!");
			}
			if(listitem == 13)  // Broadway
			{
			    CreateVehicle(575, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Broadway, look around as you don't see the car!");
			}
			if(listitem == 14)  // Buccaneer
			{
			    CreateVehicle(518, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buccaneer, look around as you don't see the car!");
			}
			if(listitem == 15)  // Buffalo
			{
			    CreateVehicle(402, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buffalo, look around as you don't see the car!");
			}
			if(listitem == 16)  // Bullet
			{
				CreateVehicle(541, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bullet, look around as you don't see the car!");
			}
			if(listitem == 17)  // Caddy
			{
			    CreateVehicle(457, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Caddy, look around as you don't see the car!");
			}
			if(listitem == 18)  // Cadrona
			{
			    CreateVehicle(527, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cadrona, look around as you don't see the car!");
			}
			if(listitem == 19)  // Camper
			{
			    CreateVehicle(483, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Camper, look around as you don't see the car!");
			}
			if(listitem == 20)  // Cheetah
			{
			    CreateVehicle(415, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cheetah, look around as you don't see the car!");
			}
			if(listitem == 21)  // Clover
			{
			    CreateVehicle(542, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Clover, look around as you don't see the car!");
			}
			if(listitem == 22)  // Club
			{
			    CreateVehicle(589, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Club, look around as you don't see the car!");
			}
			if(listitem == 23)  // Comet
			{
			    CreateVehicle(480, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Comet, look around as you don't see the car!");
			}
			if(listitem == 24)  // Elegant
			{
			    CreateVehicle(507, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegant, look around as you don't see the car!");
			}
			if(listitem == 25)  // Elegy
			{
			    CreateVehicle(562, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegy, look around as you don't see the car!");
			}
			if(listitem == 26)  // Emperor
			{
			    CreateVehicle(585, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Emperor, look around as you don't see the car!");
			}
			if(listitem == 27)  // Esperanto
			{
				CreateVehicle(419, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Esperanto, look around as you don't see the car!");
			}
			if(listitem == 28)  // Euros
			{
			    CreateVehicle(587, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Euros, look around as you don't see the car!");
			}
			if(listitem == 29)  // Feltzer
			{
			    CreateVehicle(533, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Feltzer, look around as you don't see the car!");
			}
			if(listitem == 30)  // Flash
			{
			    CreateVehicle(565, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Flash, look around as you don't see the car!");
			}
			if(listitem == 31)  // Fortune
			{
			    CreateVehicle(526, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Fortune, look around as you don't see the car!");
			}
		}
		return 1;
	}
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);

	if(dialogid == carmenu2)
	{
	    if(response)
	    {
	        if(listitem == 32)   // Glendale
	        {
	            CreateVehicle(466, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Glendale, look around as you don't see the car!");
			}
			if(listitem == 1)   // Greenwood
			{
			    CreateVehicle(492, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Greenwood, look around as you don't see the car!");
			}
			if(listitem == 2)   // Hermes
			{
			    CreateVehicle(474, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hermes, look around as you don't see the car!");
			}
			if(listitem == 3)   // Hotknife
			{
			    CreateVehicle(434, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotknife, look around as you don't see the car!");
			}
			if(listitem == 4)   // Hotring Racer
			{
			    CreateVehicle(502, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotring Racer, look around as you don't see the car!");
			}
			if(listitem == 5)   // Huntley
			{
			    CreateVehicle(579, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Huntley, look around as you don't see the car!");
			}
			if(listitem == 6)   // Hustler
			{
			    CreateVehicle(545, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hustler, look around as you don't see the car!");
			}
			if(listitem == 7)   // Infernus
			{
			    CreateVehicle(411, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Infernus, look around as you don't see the car!");
			}
			if(listitem == 8)   // Intruder
			{
			    CreateVehicle(546, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Intruder, look around as you don't see the car!");
			}
			if(listitem == 9)   // Jester
			{
			    CreateVehicle(559, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Jester, look around as you don't see the car!");
			}
			if(listitem == 10)  // Kart
			{
			    CreateVehicle(571, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Kart, look around as you don't see the car!");
			}
			if(listitem == 11)  // Bulletfree Walton
			{
			    CreateVehicle(478, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bulletfree Walton, look around as you don't see the car!");
			}
			if(listitem == 12)  // Landstalker
			{
			    CreateVehicle(400, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Landstalker, look around as you don't see the car!");
			}
			if(listitem == 13)  // Rancher
			{
			    CreateVehicle(489, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Rancher, look around as you don't see the car!");
			}
			if(listitem == 14)  // Majestic
			{
			    CreateVehicle(517, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Majestic, look around as you don't see the car!");
			}
			if(listitem == 15)  // Manana
			{
			    CreateVehicle(410, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Manana, look around as you don't see the car!");
			}
			if(listitem == 16)  // Merit
			{
				CreateVehicle(551, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Merit, look around as you don't see the car!");
			}
			if(listitem == 17)  // Mesa
			{
			    CreateVehicle(500, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Mesa, look around as you don't see the car!");
			}
			if(listitem == 18)  // Monster
			{
			    CreateVehicle(444, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster, look around as you don't see the car!");
			}
			if(listitem == 19)  // Monster A
			{
			    CreateVehicle(556, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster A, look around as you don't see the car!");
			}
			if(listitem == 20)  // Monster B
			{
			    CreateVehicle(557, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster B, look around as you don't see the car!");
			}
			if(listitem == 21)  // Nebula
			{
			    CreateVehicle(516, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Nebula, look around as you don't see the car!");
			}
			if(listitem == 22)  // Oceanic
			{
			    CreateVehicle(467, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Oceanic, look around as you don't see the car!");
			}
			if(listitem == 23)  // Perennial
			{
			    CreateVehicle(404, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Perennial, look around as you don't see the car!");
			}
			if(listitem == 24)  // Phoenix
			{
			    CreateVehicle(603, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Phoenix, look around as you don't see the car!");
			}
			if(listitem == 25)  // Picador
			{
			    CreateVehicle(600, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Picador, look around as you don't see the car!");
			}
			if(listitem == 26)  // Premier
			{
			    CreateVehicle(426, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Premier, look around as you don't see the car!");
			}
			if(listitem == 27)  // Previon
			{
				CreateVehicle(436, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Previon, look around as you don't see the car!");
			}
			if(listitem == 28)  // Primo
			{
			    CreateVehicle(547, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Primo, look around as you don't see the car!");
			}
			if(listitem == 29)  // Regina
			{
			    CreateVehicle(479, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Regina, look around as you don't see the car!");
			}
			if(listitem == 30)  // Remmington
			{
			    CreateVehicle(534, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Remmington, look around as you don't see the car!");
			}
			if(listitem == 31)  // Romero
			{
			    CreateVehicle(442, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Romero, look around as you don't see the car!");
			}
		}
		return 1;
	}
	return 0;
}
but as i use the second dialog menu and i want to spawn a Glendale there comes an Admiral from the first dialog menu.
please help me!!!!

i'm a noob in pawno scripting.
Reply
#2

#define carmenu1 1
#define carmenu2 2

U have same dialogids, use what I posted
Reply
#3

but where i have to put it?
Reply
#4

show your complete code please
Reply
#5

Quote:
Originally Posted by jpboy1
Посмотреть сообщение
but where i have to put it?
You put defines some where at the top of the script, under the includes.

pawn Код:
#include <a_samp>...

#define carmenu1 1450
#define carmenu2 1451

...main()
Reply
#6

@Hannes

as i spawn a Blade in carmenu1 i get a Blade, but as i spawn an Infernus in carmenu2 i get a blade.
i set the code here:

Код:
#if defined FILTERSCRIPT
#define carmenu1 1450
#define carmenu2 1451
@Rodney

Here is the whole code (without cars and objects)

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
new Float:X, Float:Y, Float:Z, Float:Angle, pInt, carmenu1, carmenu2, carmenu3;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" testing by jpboy1");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" testing by jpboy1");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
-------------------------cars------------------------------------

	// Don't use these lines if it's a filterscript
	SetGameModeText("mixing");
	AddPlayerClass(0,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(1,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(2,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(7,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(8,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(9,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(10,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(11,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(12,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	AddPlayerClass(13,2496.6362,-1684.9688,13.4029,8.5347,0,0,0,0,0,0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1287.1110,-1147.8951,23.6563);
	SetPlayerCameraPos(playerid, 1287.4952,-1146.3308,23.6563);
	SetPlayerCameraLookAt(playerid, 1287.1110,-1147.8951,23.6563);
	return 1;
}

public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, 0x33AA33AA, "Welcome to the server! XD");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
    GivePlayerWeapon(playerid,WEAPON_COLT45,100000000);
    GivePlayerWeapon(playerid,WEAPON_AK47,100000000);
    GivePlayerWeapon(playerid,WEAPON_SHOTGUN,100000000);
    GivePlayerWeapon(playerid,WEAPON_ROCKETLAUNCHER,100000000);
    
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    GameTextForPlayer(playerid, "HAHA You died XD LOL", 3000, 0);
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/policels", cmdtext, true, 10) == 0)
	{
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid, 1552.4454,-1675.7384,16.1953);
		SendClientMessage(playerid, 0xFFFFFFFF, "You're by the Police Station in Los Santos!");
		return 1;
	}
	if (strcmp("/home", cmdtext, true, 10) == 0)
	{
	    SetPlayerInterior(playerid,0);
	    SetPlayerPos(playerid, 2503.7092,-1684.9829,13.5469);
	 	SendClientMessage(playerid, 0xFFFFFFFF, "You're in Grove Street!");
	    return 1;
	}
	if (strcmp("/heal", cmdtext, true, 5) == 0)
	{
		SetPlayerHealth(playerid, 100);
		SendClientMessage(playerid, 0x33AA33AA, "You have been healed!");
		return 1;
	}

	if (strcmp("/kill", cmdtext, true, 5) == 0)
	{
		SetPlayerHealth(playerid, 0);
		SendClientMessage(playerid, 0xFF0000AA, "You have commited suicide!");
		return 1;
	}
	if (strcmp("/info", cmdtext, true, 5) == 0)
	{
		SendClientMessage(playerid, 0x3A47DEFF, "Welcome to the Server's INFO command!");
		SendClientMessage(playerid, 0x3A47DEFF, "Were in test/build mode! XD");
		SendClientMessage(playerid, 0x3A47DEFF, "For commands type /cmds");
		return 1;
	}
	if (strcmp("/cmds", cmdtext, true, 5) == 0)
	{
		SendClientMessage(playerid, 0x3A47DEFF, "/teles, /info, /heal, /kill, /fix, /cars1");
		return 1;
	}
	if (strcmp("/teles", cmdtext, true, 5) == 0)
	{
	    SendClientMessage(playerid, 0x33AA33AA, "/policels (los santos police)");
	    SendClientMessage(playerid, 0x33AA33AA, "/home (spawnpoint)");
	    SendClientMessage(playerid, 0x33AA33AA, "/stunt (las venturas airstrip stunts NOT MUCH YET XD)");
	    SendClientMessage(playerid, 0x33AA33AA, "/lsairport (los santos airport)");
	    return 1;
	}
	if (strcmp("/stunt", cmdtext, true, 10) == 0)
	{
	    SetPlayerInterior(playerid,0);
	    SetPlayerPos(playerid, 365.3777,2537.1970,16.6647);
	    SendClientMessage(playerid, 0xFFFFFFFF, "You're in Las Venturas Air Strip!");
	    return 1;
	}
	if (strcmp("/lsairport", cmdtext, true, 10) == 0)
	{
	    SetPlayerInterior(playerid,0);
	    SetPlayerPos(playerid, 1983.4822,-2234.5867,13.5469);
	    SendClientMessage(playerid, 0xFFFFFFFF, "You're in Los Santos Airport!");
	    return 1;
 	}
    if (!strcmp("/fix", cmdtext))
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been fixed!");
        return 1;
    }

	if (strcmp("/cars1", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, carmenu1, DIALOG_STYLE_LIST, "Car Menu 1", "Admiral \nAlpha \nBaggage \nBandito \nBanshee \nDamaged Glendale \nDamaged Sadle \nBF Injection \nBlade \nBlista Compact \nBloodring Banger \nBobcat \nBravura \nBroadway \nBuccaneer \nBuffalo \nBullet \nCaddy \nCadrona \nCamper \nCheetah \nClover \nClub \nComet \nElegant \nElegy \nEmperor \nEsperanto \nEuros \nFeltzer \nFlash", "Select", "Cancel");
		return 1;
	}
	if (strcmp("/cars2", cmdtext, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid, carmenu2, DIALOG_STYLE_LIST, "Car Menu 2", "Fortune \nGlendale \nGreenwood \nHermes \nHotknife \nHotring Racer \nHuntley \nHustler \nInfernus \nIntruder \nJester \nKart \nBulletfree Walton \nLandstalker \nRancher \nMajestic \nManana \nMerit \nMesa \nMonster \nMonster A \nMonster B \nNebula \nOceanic \nPerennial \nPhoenix \nPicador \nPremier \nPrevion \nPrimo \nRegina \nRemmington", "Select", "Cancel");
	    return 1;
	}
	if (strcmp("/cars3", cmdtext, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid, carmenu3, DIALOG_STYLE_LIST, "Car Menu 3", "Romero \nSabre \nSadler \nSandking \nSavanna \nSentinel \nSlamvan \nSolair \nStafford \nStallion \nStratum \nSultan \nSunrise \nSuper GT \nTahoma \nTampa \nTornado \nTurismo \nUranus \nVincent \nVirgo \nVoodoo \nWalton \nWahington \nWillard \nWindsor \nYosemite \nZR-350", "Select", "Cancel");
	    return 1;
	}
	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[])
{
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);
	
	if(dialogid == carmenu1)
	{
	    if(response)
	    {
	        if(listitem == 0)   // Admiral
	        {
	            CreateVehicle(445, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Admiral, look around as you don't see the car!");
			}
			if(listitem == 1)   // Alpha
			{
			    CreateVehicle(602, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Alpha, look around as you don't see the car!");
			}
			if(listitem == 2)   // Baggage
			{
			    CreateVehicle(485, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Baggage, look around as you don't see the car!");
			}
			if(listitem == 3)   // Bandito
			{
			    CreateVehicle(568, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bandito, look around as you don't see the car!");
			}
			if(listitem == 4)   // Banshee
			{
			    CreateVehicle(429, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Banshee, look around as you don't see the car!");
			}
			if(listitem == 5)   // Damaged Glendale
			{
			    CreateVehicle(604, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Glendale, look around as you don't see the car!");
			}
			if(listitem == 6)   // Damaged Sadle
			{
			    CreateVehicle(605, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Sadle, look around as you don't see the car!");
			}
			if(listitem == 7)   // BF Injection
			{
			    CreateVehicle(424, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a BF Injection, look around as you don't see the car!");
			}
			if(listitem == 8)   // Blade
			{
			    CreateVehicle(536, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blade, look around as you don't see the car!");
			}
			if(listitem == 9)   // Blista Compact
			{
			    CreateVehicle(496, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blista Compact, look around as you don't see the car!");
			}
			if(listitem == 10)  // Bloodring Banger
			{
			    CreateVehicle(504, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bloodring Banger, look around as you don't see the car!");
			}
			if(listitem == 11)  //Bobcat
			{
			    CreateVehicle(422, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bobcat, look around as you don't see the car!");
			}
			if(listitem == 12)  // Bravura
			{
			    CreateVehicle(401, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bravura, look around as you don't see the car!");
			}
			if(listitem == 13)  // Broadway
			{
			    CreateVehicle(575, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Broadway, look around as you don't see the car!");
			}
			if(listitem == 14)  // Buccaneer
			{
			    CreateVehicle(518, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buccaneer, look around as you don't see the car!");
			}
			if(listitem == 15)  // Buffalo
			{
			    CreateVehicle(402, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buffalo, look around as you don't see the car!");
			}
			if(listitem == 16)  // Bullet
			{
				CreateVehicle(541, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bullet, look around as you don't see the car!");
			}
			if(listitem == 17)  // Caddy
			{
			    CreateVehicle(457, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Caddy, look around as you don't see the car!");
			}
			if(listitem == 18)  // Cadrona
			{
			    CreateVehicle(527, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cadrona, look around as you don't see the car!");
			}
			if(listitem == 19)  // Camper
			{
			    CreateVehicle(483, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Camper, look around as you don't see the car!");
			}
			if(listitem == 20)  // Cheetah
			{
			    CreateVehicle(415, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cheetah, look around as you don't see the car!");
			}
			if(listitem == 21)  // Clover
			{
			    CreateVehicle(542, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Clover, look around as you don't see the car!");
			}
			if(listitem == 22)  // Club
			{
			    CreateVehicle(589, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Club, look around as you don't see the car!");
			}
			if(listitem == 23)  // Comet
			{
			    CreateVehicle(480, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Comet, look around as you don't see the car!");
			}
			if(listitem == 24)  // Elegant
			{
			    CreateVehicle(507, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegant, look around as you don't see the car!");
			}
			if(listitem == 25)  // Elegy
			{
			    CreateVehicle(562, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegy, look around as you don't see the car!");
			}
			if(listitem == 26)  // Emperor
			{
			    CreateVehicle(585, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Emperor, look around as you don't see the car!");
			}
			if(listitem == 27)  // Esperanto
			{
				CreateVehicle(419, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Esperanto, look around as you don't see the car!");
			}
			if(listitem == 28)  // Euros
			{
			    CreateVehicle(587, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Euros, look around as you don't see the car!");
			}
			if(listitem == 29)  // Feltzer
			{
			    CreateVehicle(533, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Feltzer, look around as you don't see the car!");
			}
			if(listitem == 30)  // Flash
			{
			    CreateVehicle(565, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Flash, look around as you don't see the car!");
			}
			if(listitem == 31)  // Fortune
			{
			    CreateVehicle(526, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Fortune, look around as you don't see the car!");
			}
		}
		return 1;
	}
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	pInt = GetPlayerInterior(playerid);

	if(dialogid == carmenu2)
	{
	    if(response)
	    {
	        if(listitem == 32)   // Glendale
	        {
	            CreateVehicle(466, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
	            SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Glendale, look around as you don't see the car!");
			}
			if(listitem == 1)   // Greenwood
			{
			    CreateVehicle(492, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Greenwood, look around as you don't see the car!");
			}
			if(listitem == 2)   // Hermes
			{
			    CreateVehicle(474, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hermes, look around as you don't see the car!");
			}
			if(listitem == 3)   // Hotknife
			{
			    CreateVehicle(434, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotknife, look around as you don't see the car!");
			}
			if(listitem == 4)   // Hotring Racer
			{
			    CreateVehicle(502, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotring Racer, look around as you don't see the car!");
			}
			if(listitem == 5)   // Huntley
			{
			    CreateVehicle(579, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Huntley, look around as you don't see the car!");
			}
			if(listitem == 6)   // Hustler
			{
			    CreateVehicle(545, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hustler, look around as you don't see the car!");
			}
			if(listitem == 7)   // Infernus
			{
			    CreateVehicle(411, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Infernus, look around as you don't see the car!");
			}
			if(listitem == 8)   // Intruder
			{
			    CreateVehicle(546, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Intruder, look around as you don't see the car!");
			}
			if(listitem == 9)   // Jester
			{
			    CreateVehicle(559, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Jester, look around as you don't see the car!");
			}
			if(listitem == 10)  // Kart
			{
			    CreateVehicle(571, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Kart, look around as you don't see the car!");
			}
			if(listitem == 11)  // Bulletfree Walton
			{
			    CreateVehicle(478, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bulletfree Walton, look around as you don't see the car!");
			}
			if(listitem == 12)  // Landstalker
			{
			    CreateVehicle(400, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Landstalker, look around as you don't see the car!");
			}
			if(listitem == 13)  // Rancher
			{
			    CreateVehicle(489, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Rancher, look around as you don't see the car!");
			}
			if(listitem == 14)  // Majestic
			{
			    CreateVehicle(517, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Majestic, look around as you don't see the car!");
			}
			if(listitem == 15)  // Manana
			{
			    CreateVehicle(410, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Manana, look around as you don't see the car!");
			}
			if(listitem == 16)  // Merit
			{
				CreateVehicle(551, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Merit, look around as you don't see the car!");
			}
			if(listitem == 17)  // Mesa
			{
			    CreateVehicle(500, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Mesa, look around as you don't see the car!");
			}
			if(listitem == 18)  // Monster
			{
			    CreateVehicle(444, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster, look around as you don't see the car!");
			}
			if(listitem == 19)  // Monster A
			{
			    CreateVehicle(556, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster A, look around as you don't see the car!");
			}
			if(listitem == 20)  // Monster B
			{
			    CreateVehicle(557, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster B, look around as you don't see the car!");
			}
			if(listitem == 21)  // Nebula
			{
			    CreateVehicle(516, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Nebula, look around as you don't see the car!");
			}
			if(listitem == 22)  // Oceanic
			{
			    CreateVehicle(467, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Oceanic, look around as you don't see the car!");
			}
			if(listitem == 23)  // Perennial
			{
			    CreateVehicle(404, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Perennial, look around as you don't see the car!");
			}
			if(listitem == 24)  // Phoenix
			{
			    CreateVehicle(603, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Phoenix, look around as you don't see the car!");
			}
			if(listitem == 25)  // Picador
			{
			    CreateVehicle(600, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Picador, look around as you don't see the car!");
			}
			if(listitem == 26)  // Premier
			{
			    CreateVehicle(426, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Premier, look around as you don't see the car!");
			}
			if(listitem == 27)  // Previon
			{
				CreateVehicle(436, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
				SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Previon, look around as you don't see the car!");
			}
			if(listitem == 28)  // Primo
			{
			    CreateVehicle(547, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Primo, look around as you don't see the car!");
			}
			if(listitem == 29)  // Regina
			{
			    CreateVehicle(479, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Regina, look around as you don't see the car!");
			}
			if(listitem == 30)  // Remmington
			{
			    CreateVehicle(534, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Remmington, look around as you don't see the car!");
			}
			if(listitem == 31)  // Romero
			{
			    CreateVehicle(442, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
			    SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Romero, look around as you don't see the car!");
			}
		}
		return 1;
	}
	return 0;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
Ohw and maybe as you want. can you tell me or maybe set it already in the script, that as you spawn the car you're in the car or the car is before you. as you don't want you doesn't have to do.
Reply
#7

This should do the trick.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    pInt = GetPlayerInterior(playerid);
   
    if(dialogid == carmenu1)
    {
        if(response)
        {
            if(listitem == 0)   // Admiral
            {
                CreateVehicle(445, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Admiral, look around as you don't see the car!");
            }
            if(listitem == 1)   // Alpha
            {
                CreateVehicle(602, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Alpha, look around as you don't see the car!");
            }
            if(listitem == 2)   // Baggage
            {
                CreateVehicle(485, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Baggage, look around as you don't see the car!");
            }
            if(listitem == 3)   // Bandito
            {
                CreateVehicle(568, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bandito, look around as you don't see the car!");
            }
            if(listitem == 4)   // Banshee
            {
                CreateVehicle(429, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Banshee, look around as you don't see the car!");
            }
            if(listitem == 5)   // Damaged Glendale
            {
                CreateVehicle(604, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Glendale, look around as you don't see the car!");
            }
            if(listitem == 6)   // Damaged Sadle
            {
                CreateVehicle(605, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Sadle, look around as you don't see the car!");
            }
            if(listitem == 7)   // BF Injection
            {
                CreateVehicle(424, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a BF Injection, look around as you don't see the car!");
            }
            if(listitem == 8)   // Blade
            {
                CreateVehicle(536, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blade, look around as you don't see the car!");
            }
            if(listitem == 9)   // Blista Compact
            {
                CreateVehicle(496, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blista Compact, look around as you don't see the car!");
            }
            if(listitem == 10)  // Bloodring Banger
            {
                CreateVehicle(504, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bloodring Banger, look around as you don't see the car!");
            }
            if(listitem == 11)  //Bobcat
            {
                CreateVehicle(422, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bobcat, look around as you don't see the car!");
            }
            if(listitem == 12)  // Bravura
            {
                CreateVehicle(401, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bravura, look around as you don't see the car!");
            }
            if(listitem == 13)  // Broadway
            {
                CreateVehicle(575, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Broadway, look around as you don't see the car!");
            }
            if(listitem == 14)  // Buccaneer
            {
                CreateVehicle(518, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buccaneer, look around as you don't see the car!");
            }
            if(listitem == 15)  // Buffalo
            {
                CreateVehicle(402, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buffalo, look around as you don't see the car!");
            }
            if(listitem == 16)  // Bullet
            {
                CreateVehicle(541, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bullet, look around as you don't see the car!");
            }
            if(listitem == 17)  // Caddy
            {
                CreateVehicle(457, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Caddy, look around as you don't see the car!");
            }
            if(listitem == 18)  // Cadrona
            {
                CreateVehicle(527, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cadrona, look around as you don't see the car!");
            }
            if(listitem == 19)  // Camper
            {
                CreateVehicle(483, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Camper, look around as you don't see the car!");
            }
            if(listitem == 20)  // Cheetah
            {
                CreateVehicle(415, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cheetah, look around as you don't see the car!");
            }
            if(listitem == 21)  // Clover
            {
                CreateVehicle(542, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Clover, look around as you don't see the car!");
            }
            if(listitem == 22)  // Club
            {
                CreateVehicle(589, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Club, look around as you don't see the car!");
            }
            if(listitem == 23)  // Comet
            {
                CreateVehicle(480, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Comet, look around as you don't see the car!");
            }
            if(listitem == 24)  // Elegant
            {
                CreateVehicle(507, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegant, look around as you don't see the car!");
            }
            if(listitem == 25)  // Elegy
            {
                CreateVehicle(562, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegy, look around as you don't see the car!");
            }
            if(listitem == 26)  // Emperor
            {
                CreateVehicle(585, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Emperor, look around as you don't see the car!");
            }
            if(listitem == 27)  // Esperanto
            {
                CreateVehicle(419, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Esperanto, look around as you don't see the car!");
            }
            if(listitem == 28)  // Euros
            {
                CreateVehicle(587, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Euros, look around as you don't see the car!");
            }
            if(listitem == 29)  // Feltzer
            {
                CreateVehicle(533, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Feltzer, look around as you don't see the car!");
            }
            if(listitem == 30)  // Flash
            {
                CreateVehicle(565, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Flash, look around as you don't see the car!");
            }
            if(listitem == 31)  // Fortune
            {
                CreateVehicle(526, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Fortune, look around as you don't see the car!");
            }
                        return 0;
        }
        return 0;
    }
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    pInt = GetPlayerInterior(playerid);

    if(dialogid == carmenu2)
    {
        if(response)
        {
            if(listitem == 32)   // Glendale
            {
                CreateVehicle(466, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Glendale, look around as you don't see the car!");
            }
            if(listitem == 1)   // Greenwood
            {
                CreateVehicle(492, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Greenwood, look around as you don't see the car!");
            }
            if(listitem == 2)   // Hermes
            {
                CreateVehicle(474, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hermes, look around as you don't see the car!");
            }
            if(listitem == 3)   // Hotknife
            {
                CreateVehicle(434, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotknife, look around as you don't see the car!");
            }
            if(listitem == 4)   // Hotring Racer
            {
                CreateVehicle(502, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotring Racer, look around as you don't see the car!");
            }
            if(listitem == 5)   // Huntley
            {
                CreateVehicle(579, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Huntley, look around as you don't see the car!");
            }
            if(listitem == 6)   // Hustler
            {
                CreateVehicle(545, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hustler, look around as you don't see the car!");
            }
            if(listitem == 7)   // Infernus
            {
                CreateVehicle(411, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Infernus, look around as you don't see the car!");
            }
            if(listitem == 8)   // Intruder
            {
                CreateVehicle(546, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Intruder, look around as you don't see the car!");
            }
            if(listitem == 9)   // Jester
            {
                CreateVehicle(559, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Jester, look around as you don't see the car!");
            }
            if(listitem == 10)  // Kart
            {
                CreateVehicle(571, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Kart, look around as you don't see the car!");
            }
            if(listitem == 11)  // Bulletfree Walton
            {
                CreateVehicle(478, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bulletfree Walton, look around as you don't see the car!");
            }
            if(listitem == 12)  // Landstalker
            {
                CreateVehicle(400, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Landstalker, look around as you don't see the car!");
            }
            if(listitem == 13)  // Rancher
            {
                CreateVehicle(489, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Rancher, look around as you don't see the car!");
            }
            if(listitem == 14)  // Majestic
            {
                CreateVehicle(517, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Majestic, look around as you don't see the car!");
            }
            if(listitem == 15)  // Manana
            {
                CreateVehicle(410, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Manana, look around as you don't see the car!");
            }
            if(listitem == 16)  // Merit
            {
                CreateVehicle(551, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Merit, look around as you don't see the car!");
            }
            if(listitem == 17)  // Mesa
            {
                CreateVehicle(500, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Mesa, look around as you don't see the car!");
            }
            if(listitem == 18)  // Monster
            {
                CreateVehicle(444, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster, look around as you don't see the car!");
            }
            if(listitem == 19)  // Monster A
            {
                CreateVehicle(556, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster A, look around as you don't see the car!");
            }
            if(listitem == 20)  // Monster B
            {
                CreateVehicle(557, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster B, look around as you don't see the car!");
            }
            if(listitem == 21)  // Nebula
            {
                CreateVehicle(516, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Nebula, look around as you don't see the car!");
            }
            if(listitem == 22)  // Oceanic
            {
                CreateVehicle(467, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Oceanic, look around as you don't see the car!");
            }
            if(listitem == 23)  // Perennial
            {
                CreateVehicle(404, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Perennial, look around as you don't see the car!");
            }
            if(listitem == 24)  // Phoenix
            {
                CreateVehicle(603, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Phoenix, look around as you don't see the car!");
            }
            if(listitem == 25)  // Picador
            {
                CreateVehicle(600, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Picador, look around as you don't see the car!");
            }
            if(listitem == 26)  // Premier
            {
                CreateVehicle(426, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Premier, look around as you don't see the car!");
            }
            if(listitem == 27)  // Previon
            {
                CreateVehicle(436, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Previon, look around as you don't see the car!");
            }
            if(listitem == 28)  // Primo
            {
                CreateVehicle(547, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Primo, look around as you don't see the car!");
            }
            if(listitem == 29)  // Regina
            {
                CreateVehicle(479, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Regina, look around as you don't see the car!");
            }
            if(listitem == 30)  // Remmington
            {
                CreateVehicle(534, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Remmington, look around as you don't see the car!");
            }
            if(listitem == 31)  // Romero
            {
                CreateVehicle(442, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Romero, look around as you don't see the car!");
            }
                        return 0;
        }
        return 0;
    }
    return 0;
}
Reply
#8

Quote:
Originally Posted by [NWA]Hannes
Посмотреть сообщение
This should do the trick.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    pInt = GetPlayerInterior(playerid);
   
    if(dialogid == carmenu1)
    {
        if(response)
        {
            if(listitem == 0)   // Admiral
            {
                CreateVehicle(445, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Admiral, look around as you don't see the car!");
            }
            if(listitem == 1)   // Alpha
            {
                CreateVehicle(602, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Alpha, look around as you don't see the car!");
            }
            if(listitem == 2)   // Baggage
            {
                CreateVehicle(485, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Baggage, look around as you don't see the car!");
            }
            if(listitem == 3)   // Bandito
            {
                CreateVehicle(568, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bandito, look around as you don't see the car!");
            }
            if(listitem == 4)   // Banshee
            {
                CreateVehicle(429, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Banshee, look around as you don't see the car!");
            }
            if(listitem == 5)   // Damaged Glendale
            {
                CreateVehicle(604, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Glendale, look around as you don't see the car!");
            }
            if(listitem == 6)   // Damaged Sadle
            {
                CreateVehicle(605, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Damaged Sadle, look around as you don't see the car!");
            }
            if(listitem == 7)   // BF Injection
            {
                CreateVehicle(424, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a BF Injection, look around as you don't see the car!");
            }
            if(listitem == 8)   // Blade
            {
                CreateVehicle(536, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blade, look around as you don't see the car!");
            }
            if(listitem == 9)   // Blista Compact
            {
                CreateVehicle(496, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Blista Compact, look around as you don't see the car!");
            }
            if(listitem == 10)  // Bloodring Banger
            {
                CreateVehicle(504, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bloodring Banger, look around as you don't see the car!");
            }
            if(listitem == 11)  //Bobcat
            {
                CreateVehicle(422, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bobcat, look around as you don't see the car!");
            }
            if(listitem == 12)  // Bravura
            {
                CreateVehicle(401, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bravura, look around as you don't see the car!");
            }
            if(listitem == 13)  // Broadway
            {
                CreateVehicle(575, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Broadway, look around as you don't see the car!");
            }
            if(listitem == 14)  // Buccaneer
            {
                CreateVehicle(518, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buccaneer, look around as you don't see the car!");
            }
            if(listitem == 15)  // Buffalo
            {
                CreateVehicle(402, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Buffalo, look around as you don't see the car!");
            }
            if(listitem == 16)  // Bullet
            {
                CreateVehicle(541, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bullet, look around as you don't see the car!");
            }
            if(listitem == 17)  // Caddy
            {
                CreateVehicle(457, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Caddy, look around as you don't see the car!");
            }
            if(listitem == 18)  // Cadrona
            {
                CreateVehicle(527, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cadrona, look around as you don't see the car!");
            }
            if(listitem == 19)  // Camper
            {
                CreateVehicle(483, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Camper, look around as you don't see the car!");
            }
            if(listitem == 20)  // Cheetah
            {
                CreateVehicle(415, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Cheetah, look around as you don't see the car!");
            }
            if(listitem == 21)  // Clover
            {
                CreateVehicle(542, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Clover, look around as you don't see the car!");
            }
            if(listitem == 22)  // Club
            {
                CreateVehicle(589, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Club, look around as you don't see the car!");
            }
            if(listitem == 23)  // Comet
            {
                CreateVehicle(480, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Comet, look around as you don't see the car!");
            }
            if(listitem == 24)  // Elegant
            {
                CreateVehicle(507, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegant, look around as you don't see the car!");
            }
            if(listitem == 25)  // Elegy
            {
                CreateVehicle(562, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Elegy, look around as you don't see the car!");
            }
            if(listitem == 26)  // Emperor
            {
                CreateVehicle(585, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Emperor, look around as you don't see the car!");
            }
            if(listitem == 27)  // Esperanto
            {
                CreateVehicle(419, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Esperanto, look around as you don't see the car!");
            }
            if(listitem == 28)  // Euros
            {
                CreateVehicle(587, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Euros, look around as you don't see the car!");
            }
            if(listitem == 29)  // Feltzer
            {
                CreateVehicle(533, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Feltzer, look around as you don't see the car!");
            }
            if(listitem == 30)  // Flash
            {
                CreateVehicle(565, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Flash, look around as you don't see the car!");
            }
            if(listitem == 31)  // Fortune
            {
                CreateVehicle(526, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Fortune, look around as you don't see the car!");
            }
                        return 0;
        }
        return 0;
    }
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);
    pInt = GetPlayerInterior(playerid);

    if(dialogid == carmenu2)
    {
        if(response)
        {
            if(listitem == 32)   // Glendale
            {
                CreateVehicle(466, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Glendale, look around as you don't see the car!");
            }
            if(listitem == 1)   // Greenwood
            {
                CreateVehicle(492, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Greenwood, look around as you don't see the car!");
            }
            if(listitem == 2)   // Hermes
            {
                CreateVehicle(474, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hermes, look around as you don't see the car!");
            }
            if(listitem == 3)   // Hotknife
            {
                CreateVehicle(434, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotknife, look around as you don't see the car!");
            }
            if(listitem == 4)   // Hotring Racer
            {
                CreateVehicle(502, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hotring Racer, look around as you don't see the car!");
            }
            if(listitem == 5)   // Huntley
            {
                CreateVehicle(579, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Huntley, look around as you don't see the car!");
            }
            if(listitem == 6)   // Hustler
            {
                CreateVehicle(545, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Hustler, look around as you don't see the car!");
            }
            if(listitem == 7)   // Infernus
            {
                CreateVehicle(411, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Infernus, look around as you don't see the car!");
            }
            if(listitem == 8)   // Intruder
            {
                CreateVehicle(546, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Intruder, look around as you don't see the car!");
            }
            if(listitem == 9)   // Jester
            {
                CreateVehicle(559, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Jester, look around as you don't see the car!");
            }
            if(listitem == 10)  // Kart
            {
                CreateVehicle(571, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Kart, look around as you don't see the car!");
            }
            if(listitem == 11)  // Bulletfree Walton
            {
                CreateVehicle(478, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Bulletfree Walton, look around as you don't see the car!");
            }
            if(listitem == 12)  // Landstalker
            {
                CreateVehicle(400, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Landstalker, look around as you don't see the car!");
            }
            if(listitem == 13)  // Rancher
            {
                CreateVehicle(489, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Rancher, look around as you don't see the car!");
            }
            if(listitem == 14)  // Majestic
            {
                CreateVehicle(517, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Majestic, look around as you don't see the car!");
            }
            if(listitem == 15)  // Manana
            {
                CreateVehicle(410, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Manana, look around as you don't see the car!");
            }
            if(listitem == 16)  // Merit
            {
                CreateVehicle(551, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Merit, look around as you don't see the car!");
            }
            if(listitem == 17)  // Mesa
            {
                CreateVehicle(500, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Mesa, look around as you don't see the car!");
            }
            if(listitem == 18)  // Monster
            {
                CreateVehicle(444, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster, look around as you don't see the car!");
            }
            if(listitem == 19)  // Monster A
            {
                CreateVehicle(556, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster A, look around as you don't see the car!");
            }
            if(listitem == 20)  // Monster B
            {
                CreateVehicle(557, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Monster B, look around as you don't see the car!");
            }
            if(listitem == 21)  // Nebula
            {
                CreateVehicle(516, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Nebula, look around as you don't see the car!");
            }
            if(listitem == 22)  // Oceanic
            {
                CreateVehicle(467, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned an Oceanic, look around as you don't see the car!");
            }
            if(listitem == 23)  // Perennial
            {
                CreateVehicle(404, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Perennial, look around as you don't see the car!");
            }
            if(listitem == 24)  // Phoenix
            {
                CreateVehicle(603, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Phoenix, look around as you don't see the car!");
            }
            if(listitem == 25)  // Picador
            {
                CreateVehicle(600, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Picador, look around as you don't see the car!");
            }
            if(listitem == 26)  // Premier
            {
                CreateVehicle(426, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Premier, look around as you don't see the car!");
            }
            if(listitem == 27)  // Previon
            {
                CreateVehicle(436, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Previon, look around as you don't see the car!");
            }
            if(listitem == 28)  // Primo
            {
                CreateVehicle(547, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Primo, look around as you don't see the car!");
            }
            if(listitem == 29)  // Regina
            {
                CreateVehicle(479, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Regina, look around as you don't see the car!");
            }
            if(listitem == 30)  // Remmington
            {
                CreateVehicle(534, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Remmington, look around as you don't see the car!");
            }
            if(listitem == 31)  // Romero
            {
                CreateVehicle(442, X+5, Y, Z, Angle, random(100), random(100), -1); LinkVehicleToInterior(GetPlayerVehicleID(playerid), pInt);
                SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a Romero, look around as you don't see the car!");
            }
                        return 0;
        }
        return 0;
    }
    return 0;
}
i test it but as i want to spawn the Infernus it still spawns the blade.

EDIT: i got a new signature
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)