Seatbelt..
#5

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 ^^
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: 2 Guest(s)