08.01.2011, 09:48
Hi,
in what callback i should put script if i want to check vehicle healh all time?
in what callback i should put script if i want to check vehicle healh all time?
public OnPlayerUpdate(playerid)
{
new
vehicleid = GetPlayerVehicleID(playerid);
if (vehicleDB[vehicleid][drausta])
{
if (GetVehicleHealth(vehicleid) < 400)
{
SetVehicleHealth(vehicleid,1000);
}
}
return 1;}
if (vehicleDB[vehicleid][drausta])
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
RepairVehicle(vehicleid);
return 1;
}
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
pawn Код:
|