15.07.2010, 19:57
Код:
public OnPlayerUpdate(playerid) { new Float:health; new veh; veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, health); if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { RepairVehicle(GetPlayerVehicleID(playerid)); } return 1; }