am creat o comanda(dealership)si acolo poti cumpara masini!Acum cu ce as vrea sa ma ajutati si pe mine , cum fac de exemplu infernus sa pot cumpara o data nu de infinit de ori ce sa adaug pe aici
[pawn]else if (strcmp(carsid, "Infernus", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[7][0])
{
new carid = CreateVehicle(411, X,Y,Z, A, color1,color2, 60000);
Question
Bladex
am creat o comanda(dealership)si acolo poti cumpara masini!Acum cu ce as vrea sa ma ajutati si pe mine , cum fac de exemplu infernus sa pot cumpara o data nu de infinit de ori ce sa adaug pe aici
[pawn]else if (strcmp(carsid, "Infernus", true, strlen(carsid)) == 0)
{
if(GetPlayerMoney(playerid) >= CarPrice2[7][0])
{
new carid = CreateVehicle(411, X,Y,Z, A, color1,color2, 60000);
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = carid;}
else if(PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pDonateRank] >= 50) { PlayerInfo[playerid][pPcarkey2] = carid; }
else if(PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pDonateRank] >= 100) { PlayerInfo[playerid][pPcarkey3] = carid; }
else { return 1; }
SafeGivePlayerMoney(playerid,-CarPrice2[7][0]);
SBizzInfo[1][sbTill] += CarPrice2[7][0];
SBizzInfo[1][sbProducts]--;
PlayerPlayMusic(playerid);
CarInfo[carid][cOwned] = 1;
CarInfo[carid][cModel] = 411;
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;
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();
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! ");
return 1;
}
}[/pawn]
0 answers to this question
Recommended Posts