08.04.2012, 13:34
Its a lot of code , what part of code need to show? oH , that with price?
But I Dont know if it is from here , 'cuz i modified every Playercontrollable with 0 and 1 but without any chance
Quote:
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); TogglePlayerControllable(playerid, 0); } if(CarInfo[newcar][cOwned]==1) { TogglePlayerControllable(playerid, 0); format(string,sizeof(string),""color_grey"Vehicul inregistrat pe numele:"wh" %s",CarInfo[newcar][cOwner]); SendClientMessage(playerid, COLOR_BLUE, string); SendClientMessage(playerid, COLOR_BLUE, "Scrie /v engine pentru a porni motorul"); if(PlayerInfo[playerid][pPcarkey] == vehicle) { } else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { } //else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { } else { if(PlayerInfo[playerid][pAdmin] >= 1338 && AdminDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " You can drive this car because you are admin on duty !"); //gEngine[playerid] = 1; TogglePlayerControllable(playerid, 1); } else { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle"); } } } } gLastCar[playerid] = newcar; gLastDriver[newcar] = playerid; } |