08/03/2021 11:06
Código:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health <= 300.0)
{
SetVehicleHealth(vehicleid, 300.0);
SetVehicleParamsEx(vehicleid, 0, 0, 0, 0, 0, 0, 0);
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health <= 300.0)
SetVehicleParamsEx(vehicleid, 0, 0, 0, 0, 0, 0, 0);
return true;
}
SA:MP Dev Tools
Faça mais, ganhe mais e poupe tempo!
Viper Anti-Cheat
Torne seu servidor mais seguro!
________________________________________
Soluções personalizadas para SA:MP
Discord: .eduardoac | Eduardo AC#3140
Faça mais, ganhe mais e poupe tempo!
Viper Anti-Cheat
Torne seu servidor mais seguro!
________________________________________
Soluções personalizadas para SA:MP
Discord: .eduardoac | Eduardo AC#3140