Seatbelt..
#1

Why this reduces player's health only for like 5 HP points.. How can I make it it will reduce players health based on how much damage vehicle recieved at crash?

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);
    }
    return 1;
}
Reply


Messages In This Thread
Seatbelt.. - by Lajko1 - 21.03.2014, 18:02
Re: Seatbelt.. - by ]Rafaellos[ - 21.03.2014, 18:40
Re: Seatbelt.. - by Lajko1 - 21.03.2014, 18:56
Re: Seatbelt.. - by Matess - 21.03.2014, 19:27
Re: Seatbelt.. - by Lajko1 - 21.03.2014, 19:53
Re: Seatbelt.. - by Lajko1 - 22.03.2014, 15:51
Re: Seatbelt.. - by caki - 22.03.2014, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)