Jump to content
  • 0

personal cars!


Bladex

Question

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]

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.