Jump to content
  • 0

/v buy


yonutzz

Question

salut. am si eu o problema la un gm.La masinile personale cand intru sa le cumpar, nu imi apare textul /v buy intotdeauna. cate-odata apare alta data nu. Din ce cauza sa fie? Asta este comanda.

[pawn]if(IsAnOwnableCar(newcar))

{

    if(CarInfo[newcar][cOwned]==0)

    {

        TogglePlayerControllable(playerid, 0);

        format(string,sizeof(string),"~w~Vehicle: %s~n~Price: ~g~%d~n~~w~/v buy to buy this vehicle~n~~r~/exit ~w~to exit this vehicle",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);

GameTextForPlayer(playerid,string,5000,5);

    }

    if(CarInfo[newcar][cOwned]==1)

    {

        format(string,sizeof(string),""color_grey"Vehicul inregistrat pe numele:"wh"  %s",CarInfo[newcar][cOwner]);

SendClientMessage(playerid, COLOR_BLUE, string);

if(PlayerInfo[playerid][pPcarkey] == vehicle) { }

else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }

//else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }

else

{

    if(PlayerInfo[playerid][pAdmin] >= 8 && AdminDuty[playerid] == 1)

{

    SendClientMessage(playerid, COLOR_GREY, "  You can drive this car because you are admin on duty !");

}

    else

    {

    RemovePlayerFromVehicle(playerid);

    SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");

}

}

    }

}

gLastCar[playerid] = newcar;

gLastDriver[newcar] = playerid;

}[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.