Quote:
Originally Posted by Matess
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid) { if(SeatBelt[playerid] ==0) { new Float:phealth; new Float:vhealth; GetPlayerHealth(playerid, phealth); new veh = GetPlayerVehicleID(playerid); GetVehicleHealth(veh, vhealth); SetPlayerHealth(playerid, phealth - vhealth /168);//Vehicle got 1000HP so 1000/168 = 5.95 and this is your problem } return 1; }
|
Lowered it to 50 and it's somehow better but it's always same damage how can I make it based on how much vehicle received damage ? and if someone can show a code or something I wasn't scripting with those things yet ^^