Vehicle damage
#1

Im trying to make a broken engine thingy, like GTA4, that if vehicle health is under 600, the engine breaks down and it takes several seconds to turn his engine on, and if the vehicle health is under 400 the engine can't go on, but all I want to know is how to get it, because I tried it with OnPlayerUpdate but it does not work the way I want it to.
Reply
#2

OnPlayerVehicleDamage(playerid, vehicleid, Float: Damage)

Download include and make under public:

pawn Код:
if(Damage < 600)
{
    // Function
    return 1;
}
Reply
#3

Quote:
Originally Posted by HY
Посмотреть сообщение
OnPlayerVehicleDamage(playerid, vehicleid, Float: Damage)

Download include and make under public:

pawn Код:
if(Damage < 600)
{
    // Function
    return 1;
}
Thank you so much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)