12.08.2011, 10:42
Another exemple:
if damage is -100 of health the vehicle, you lose 20% of your health!
if damage is -100 of health the vehicle, you lose 20% of your health!
Код:
public OnPlayerVehicleDamage(playerid,vehicleid,Float:Damage) { new Float:health; if(IsPlayerConnected(playerid) && IsPlayerInVehicle(playerid,vehicleid)) { if(Damage > 100){ GetPlayerHealth(playerid,health); SetPlayerHealth(playerid,health-20);} } return 1; }
Sorry For My English