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]);
Question
yonutzz
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