if (strcmp(cmd, "/buycar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You have to be level 3 to use this function !");
return 1;
}
new carsid[128];
new carstring[256];
new carstring1[256];
new carstring2[256];
new carstring3[256];
new carstring4[256];
new Float:X, Float:Y, Float:Z;
new Float:A;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, A);
if(PlayerInfo[playerid][pPcarkey] == 999) { }
else if(PlayerInfo[playerid][pPcarkey2] == 999) { }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { }
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { }
else { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You already have a car! "); return 1; }
if(IsAtDealership(playerid))
{
if(SBizzInfo[1][sbProducts] <= 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /buycar [carname] [color1] [color2]");
SendClientMessage(playerid, COLOR_GREEN,"___________________________*** Cars ***___________________________________");
format(carstring4, 256, "Cars: Landstal (%s) Bravura (%s) Peren (%s) Limo (%s) Manana (%s)",
DecimalPoint(CarPrice2[0][0]),DecimalPoint(CarPrice2[1][0]),DecimalPoint(CarPrice2[2][0]),DecimalPoint(CarPrice2[3][0]),DecimalPoint(CarPrice2[4][0]));
SendClientMessage(playerid, COLOR_LIGHTBLUE, carstring4);
format(carstring1, 256, "Cars: Stallion (%s) Comet (%s) Burrito (%s) Sandking (%s) Blistac (%s) Caddy (%s)",
DecimalPoint(CarPrice2[5][0]),DecimalPoint(CarPrice2[6][0]),DecimalPoint(CarPrice2[7][0]),DecimalPoint(CarPrice2[8][0]),DecimalPoint(CarPrice2[9][0]),DecimalPoint(CarPrice2[10][0]));
SendClientMessage(playerid, COLOR_WHITE, carstring1);
format(carstring, 256, "Cars: Clover (%s) Uranus (%s) Jester (%s) Sultan (%s) Elegy (%s) Stratum (%s)",
DecimalPoint(CarPrice2[11][0]),DecimalPoint(CarPrice2[12][0]),DecimalPoint(CarPrice2[13][0]),DecimalPoint(CarPrice2[14][0]),DecimalPoint(CarPrice2[15][0]),DecimalPoint(CarPrice2[16][0]));
SendClientMessage(playerid, COLOR_LIGHTBLUE, carstring);
format(carstring3, 256, "Cars: Infernus (%s) Huntley (%s) Cheetah (%s) Esperant (%s) Faggio (%s) Banshee (%s)",
DecimalPoint(CarPrice2[17][0]),DecimalPoint(CarPrice2[18][0]),DecimalPoint(CarPrice2[19][0]),DecimalPoint(CarPrice2[20][0]),DecimalPoint(CarPrice2[21][0]),DecimalPoint(CarPrice2[28][0]));
SendClientMessage(playerid, COLOR_WHITE, carstring3);
format(carstring2, 256, "Cars: NRG-500 (%s) Bullet (%s) Turismo (%s) Sabre (%s) Supergt (%s) Buffalo (%s) ",
DecimalPoint(CarPrice2[22][0]),DecimalPoint(CarPrice2[23][0]),DecimalPoint(CarPrice2[24][0]),DecimalPoint(CarPrice2[25][0]),DecimalPoint(CarPrice2[26][0]),DecimalPoint(CarPrice2[40][0]));
SendClientMessage(playerid, COLOR_LIGHTBLUE, carstring2);
SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________________________");
return 1;
}
strmid(carsid, tmp, 0, strlen(cmdtext), 255);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /buycar [carname] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Color Number can't be below 0 or above 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /buycar [carname] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Color Number can't be below 0 or above 126 !"); return 1; }
if (strcmp(carsid, "Landstal", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[0][0])
{
new carid = CreateVehicle(400, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[0][0]);
SBizzInfo[1][sbTill] += CarPrice2[0][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 400;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[0][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Landstal", 0, strlen("Landstal"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Banshee", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[28][0])
{
new carid = CreateVehicle(429, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[28][0]);
SBizzInfo[1][sbTill] += CarPrice2[28][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 429;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[28][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Banshee", 0, strlen("Banshee"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Buffalo", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[40][0])
{
new carid = CreateVehicle(402, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[40][0]);
SBizzInfo[1][sbTill] += CarPrice2[40][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 402;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[40][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Buffalo", 0, strlen("Buffalo"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Bravura", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[1][0])
{
new carid = CreateVehicle(401, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2,60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[1][0]);
SBizzInfo[1][sbTill] += CarPrice2[1][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 401;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[1][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Bravura", 0, strlen("Bravura"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Faggio", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[21][0])
{
new carid = CreateVehicle(462, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[21][0]);
SBizzInfo[1][sbTill] += CarPrice2[21][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 462;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[21][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Faggio", 0, strlen("Faggio"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Caddy", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[10][0])
{
new carid = CreateVehicle(457, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[10][0]);
SBizzInfo[1][sbTill] += CarPrice2[10][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 457;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[10][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Caddy", 0, strlen("Caddy"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Manana", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[4][0])
{
new carid = CreateVehicle(410, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[4][0]);
SBizzInfo[1][sbTill] += CarPrice2[4][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 410;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[4][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Manana", 0, strlen("Manana"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Peren", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[2][0])
{
new carid = CreateVehicle(404, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[2][0]);
SBizzInfo[1][sbTill] += CarPrice2[2][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 404;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[2][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Peren", 0, strlen("Peren"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Limo", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[3][0])
{
new carid = CreateVehicle(409, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[3][0]);
SBizzInfo[1][sbTill] += CarPrice2[3][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 409;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[3][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Limo", 0, strlen("Limo"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Infernus", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 5 pentru a cumpara un Infernus!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[17][0])
{
new carid = CreateVehicle(411, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[17][0]);
SBizzInfo[1][sbTill] += CarPrice2[17][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 411;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[17][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Infernus", 0, strlen("Infernus"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Huntley", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 5 pentru a cumpara un Huntley!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[18][0])
{
new carid = CreateVehicle(579, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[18][0]);
SBizzInfo[1][sbTill] += CarPrice2[18][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 579;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[18][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Huntley", 0, strlen("Huntley"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Cheetah", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 3 pentru a cumpara un Cheetah!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[19][0])
{
new carid = CreateVehicle(415, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[19][0]);
SBizzInfo[1][sbTill] += CarPrice2[19][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 415;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[19][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Cheetah", 0, strlen("Cheetah"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Esperant", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[20][0])
{
new carid = CreateVehicle(419, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[20][0]);
SBizzInfo[1][sbTill] += CarPrice2[20][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 419;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[20][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Esperant", 0, strlen("Esperant"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Stallion", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[5][0])
{
new carid = CreateVehicle(439, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[5][0]);
SBizzInfo[1][sbTill] += CarPrice2[5][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 439;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[5][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Stallion", 0, strlen("Stallion"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Bullet", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 5 pentru a cumpara un Bullet!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[23][0])
{
new carid = CreateVehicle(541, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[23][0]);
SBizzInfo[1][sbTill] += CarPrice2[23][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 541;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[23][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Bullet", 0, strlen("Bullet"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Turismo", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 5 pentru a cumpara un Turismo!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[24][0])
{
new carid = CreateVehicle(451, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[24][0]);
SBizzInfo[1][sbTill] += CarPrice2[24][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 451;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[24][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Turismo", 0, strlen("Turismo"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Sabre", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[25][0])
{
new carid = CreateVehicle(475, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[25][0]);
SBizzInfo[1][sbTill] += CarPrice2[25][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 475;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[25][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Sabre", 0, strlen("Sabre"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "NRG-500", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 8 pentru a cumpara un NRG-500!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[22][0])
{
new carid = CreateVehicle(522, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[22][0]);
SBizzInfo[1][sbTill] += CarPrice2[22][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 522;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[22][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "NRG-500", 0, strlen("NRG-500"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Comet", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[6][0])
{
new carid = CreateVehicle(480, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[6][0]);
SBizzInfo[1][sbTill] += CarPrice2[6][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 480;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[6][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Comet", 0, strlen("Comet"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Burrito", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[7][0])
{
new carid = CreateVehicle(482, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[7][0]);
SBizzInfo[1][sbTill] += CarPrice2[7][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 482;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[7][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Burrito", 0, strlen("Burrito"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Sandking", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[8][0])
{
new carid = CreateVehicle(495, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[8][0]);
SBizzInfo[1][sbTill] += CarPrice2[8][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 495;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[8][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Sandking", 0, strlen("Sandking"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Blistac", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[9][0])
{
new carid = CreateVehicle(496, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[9][0]);
SBizzInfo[1][sbTill] += CarPrice2[9][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 496;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[9][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Blistac", 0, strlen("Blistac"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Supergt", true, strlen(carsid)) == 0)
{
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "** Trebuie sa ai level 3 pentru a cumpara un Supergt!");
return 1;
}
if(GetPlayerMoney(playerid) >= CarPrice2[26][0])
{
new carid = CreateVehicle(506, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[26][0]);
SBizzInfo[1][sbTill] += CarPrice2[26][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 506;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[26][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Supergt", 0, strlen("Supergt"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Clover", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[11][0])
{
new carid = CreateVehicle(542, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[11][0]);
SBizzInfo[1][sbTill] += CarPrice2[11][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 542;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[11][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Clover", 0, strlen("Clover"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Uranus", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[12][0])
{
new carid = CreateVehicle(558, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[12][0]);
SBizzInfo[1][sbTill] += CarPrice2[12][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 558;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[12][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Uranus", 0, strlen("Uranus"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Jester", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[13][0])
{
new carid = CreateVehicle(559, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[13][0]);
SBizzInfo[1][sbTill] += CarPrice2[13][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 559;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[13][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Jester", 0, strlen("Jester"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Sultan", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[14][0])
{
new carid = CreateVehicle(560, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[14][0]);
SBizzInfo[1][sbTill] += CarPrice2[14][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 560;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[14][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Sultan", 0, strlen("Sultan"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Elegy", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[15][0])
{
new carid = CreateVehicle(562, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[15][0]);
SBizzInfo[1][sbTill] += CarPrice2[15][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 562;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[15][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Elegy", 0, strlen("Elegy"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else if (strcmp(carsid, "Stratum", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[16][0])
{
new carid = CreateVehicle(561, 1730.0676, -1780.0515, 13.5136, 322.5013, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999) { PlayerInfo[playerid][pPcarkey3] = carid; }
else if(PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey4] = carid;}
else if(PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pDonateRank] >= 2) { PlayerInfo[playerid][pPcarkey5] = carid; }
else if(PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey6] = carid; }
else if(PlayerInfo[playerid][pPcarkey7] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey7] = carid; }
else { return 1; }
GivePlayerMoney(playerid,-CarPrice2[16][0]);
SBizzInfo[1][sbTill] += CarPrice2[16][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 561;
CarInfo[carid][cLock] = 1;
CarInfo[carid][cValue] = CarPrice2[16][0];
CarInfo[carid][cColorOne] = color1;
CarInfo[carid][cColorTwo] = color2;
CarInfo[carid][cLocationx] = X;
CarInfo[carid][cLocationy] = Y;
CarInfo[carid][cLocationz] = Z;
CarInfo[carid][cAngle] = A;
CarInfo[carid][paintjob] = -1;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[carid][cOwner], sendername, 0, strlen(sendername), 999);
GameTextForPlayer(playerid, "~w~Congratulations~n~Don't forget to /v park it!", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations on your new purchase!");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /vhelp to view the vehicle manual!");
SendClientMessage(playerid, COLOR_LIGHTRED, "You can start the engine up now !");
strmid(CarInfo[carid][cDescription], "Stratum", 0, strlen("Stratum"), 999);
SaveCars();
OnPlayerUpdateEx(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have enough cash with you ! ");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: We never heard of that car ! ");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You need to be at the car dealership to buy ! ");
return 1;
}
}
return 1;
}