23.07.2012, 11:22
I was looking and searching for a command that will fully fix your car and this is what i came up with:
I tested it and it only does the health of the car. Can someone show me a tut or explain what to put into this to make the car get fully repaired?
Code:
CMD:fixveh(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_GREY," You can not use this command outside of a vehicle!");
{
new car;
car = GetPlayerVehicleID(playerid);
SetVehicleHealth(car, 1000);
SendClientMessage(playerid, COLOR_YELLOW, " You have fixed your vehicle.");
}
return 1;
}


