Need help .
#1

Hi guys I am making car spawn codes in dialog . I NEED help to making it in short way .

Код:
	if(dialogid == 21212)
    {
  		  if(response)
			{
									    		    						new Float:X,Float:Y,Float:Z;
			GetPlayerPos(playerid, X,Y,Z);
			    		    if(listitem == 0)
			{
                      model = 402
			 CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
 		   else if(listitem == 1)
			{
                      model = 402
			 CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
}
		}
Now guys it's an exaple t code but its only two car in is codes but I ave to make all cars for this I have to add "createvehicle()" in every item IS there any way to make like this .

if(listitem == 0)
{
model = 400
else if(listitem == 1)
{
model = 401
{
.................... Now what to d please help .
Reply
#2

why not just do

CreateVehicle(402, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);

?? because i believe that if you do model = 400 then your gonna do a lot of defines or

new model = 400;

^^^ that above the CreateVehicle(model, X+1,Y+5,Z+1, 0.0, 1, 1, 60000);
Reply
#3

No its my dealership or i have to define model cuz its save car model .
Reply
#4

well try to do

pawn Код:
new model = 400; //Add this above the CreateVehicle in your code and change 400 to the model you need
Reply
#5

Yes my current codes is this .
Quote:

if(dialogid == 21214)
{
if(response)
{
if(listitem == 0)
{
new car = 184;
new model = 468;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 14999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-15000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase.");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 1)
{
new car = 184;
new model = 461;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 11999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-12000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 2)
{
new car = 184;
new model = 462;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 9999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-10000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 3)
{
new car = 184;
new model = 463;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 11499)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-11500);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 4)
{
new car = 184;
new model = 481;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 1999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-2000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 5)
{
new car = 184;
new model = 509;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 2999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-3000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 6)
{
new car = 184;
new model = 501;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 4999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-5000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 7)
{
new car = 184;
new model = 521;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 4999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-5000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem ==
{
new car = 184;
new model = 522;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 4999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-5000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 9)
{
new car = 184;
new model = 581;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 4999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-5000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
else if(listitem == 9)
{
new car = 184;
new model = 586;
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999 || PlayerInfo[playerid][pPcarkey2] == 999) { }
else return SendClientMessage(playerid, COLOR_GREY,"* You already own Two cars!");
if(GetPlayerMoney(playerid) >= 4999)
{
for(new h = 184; h < sizeof(CarInfo); h++)
{
if(CarInfo[h][cOwned] == 1)
{
car = h + 1;
}
}
if(PlayerInfo[playerid][pPcarkey] != 999) { PlayerInfo[playerid][pPcarkey2] = car; }
else { PlayerInfo[playerid][pPcarkey] = car; }
CarInfo[car][cOwned] = 1;
strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-5000);
CarInfo[car][cModel] = model;
CarInfo[car][cVirWorld] = 0;
DestroyVehicle(car);
CarInfo[car][cLocationx] = 564.7234;
CarInfo[car][cLocationy] = -1272.7706;
CarInfo[car][cLocationz] = 17.0738;
CarInfo[car][cAngle] = 12.3577;
CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!|Type /vehiclehelp to view the vehicle manual|");
SendClientMessage(playerid, COLOR_GRAD2, "Your new car spawn at out side the dealership go check it.");
gEngine[playerid] = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate(4);
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}
return 1;
}
}

Is there any way to make it short .
Reply
#6

Short my ass lol uh really after seeing that code you may need to ask someone who

1. Knows RolePlays
2. Scripted Longer Than Me

I really didn't think it was that much
Reply
#7

Thanks for helping . I thinks I have to do something myself .
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)