26.07.2012, 08:20
Hhm, It worked fine for me when I tested it.
Try this
Try this
PHP код:
forward OnVehicleGetDamaged(playerid, vehicleid, weaponid);
public OnVehicleGetDamaged(playerid, vehicleid, weaponid)
{
if( GetPlayerWeapon(playerid) == 38 )
{
new Float:VehicleHealth;
GetVehicleHealth(vehicleid, VehicleHealth);
SetVehicleHealth(vehicleid, VehicleHealth+0);
}
return 1;
}