- 0
ce am gresit ?
-
Similar Content
-
- 7 replies
- 825 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Don.Capone
ce am gresit ?
[pawn]if(IsAnOwnableCar(newcar))
{
if(CarInfo[newcar][cOwned]==0)
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW,"___________________________");
format(string,sizeof(string),"Vehicle Name: %s",CarInfo[newcar][cDescription]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Price: %d",GetVehiclePrice(newcar));
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Owner: %s",CarInfo[newcar][cOwner]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_LIGHTRED,"Type /v buy to buy this car");
SendClientMessage(playerid, COLOR_YELLOW,"___________________________");
}
if(CarInfo[newcar][cOwned]==1)
{
format(string,sizeof(string),"Masina Inregistrata pe numele lui: %s",CarInfo[newcar][cOwner]);
SendClientMessage(playerid, COLOR_BUS, string);
/*if(keycar != vehicle)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}*/
if(PlayerInfo[playerid][pPcarkey1] == vehicle) { }
else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }
else
{
if(PlayerInfo[playerid][pAdmin] >= 5 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SendClientMessage(playerid, COLOR_GREY, "You can drive this car");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}
}
}
}[/pawn]
I'm back haha !
Link to comment
Share on other sites
1 answer to this question
Recommended Posts