16.02.2019, 21:22
(
Последний раз редактировалось Japis; 16.02.2019 в 21:55.
)
Remova do topo:
e adicione antes da public abaixo:
Код:
forward UpdatePlayecar(playerid);
Код:
forward UpdatePlayercar(playerid); public UpdatePlayercar(playerid) { new playervehicle; if ( (playervehicle = GetPlayerVehicleID(playerid)) != INVALID_VEHICLE_ID) { new lu, alar, por, cap, porma, ob; new carro = GetPlayerVehicleID(playerid); static Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid),health); if(health <= 350) { SendClientMessage(playerid, VERMELHO_COR, "Seu motor estragou"); SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob); HidePlayercar(playerid); Playercar[playerid] = false ; KillTimer(PlayerTimerCar[playerid]); return 0; } } return 1; }