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;
}
}
|