SA-MP Forums Archive
one question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: one question (/showthread.php?tid=375490)



one question - rumen98 - 07.09.2012

okay to make a system like that you hit with your car to take health if it can you give me the link or I will do my very grateful


Re: one question - doreto - 07.09.2012

what you mean can you explain bether ? you wont when you hit (wich what) to take cars hp ?


Re : one question - ricardo178 - 07.09.2012

He means a system to take player HP when he crashes the car against something..


Re: one question - rumen98 - 07.09.2012

when any player hit with car to take player health


Re: one question - RanSEE - 07.09.2012

Do you mean, if player hits another car/object with his car the player lose HP ?


Re: one question - rumen98 - 07.09.2012

Quote:
Originally Posted by RanSEE
Посмотреть сообщение
Do you mean, if player hits another car/object with his car the player lose HP ?
Yes this


Re: one question - RanSEE - 07.09.2012

Try this.

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
        new Float:vehHealth;
        GetVehicleHealth(vehicleid, vehHealth);
        SetPlayerHealth(playerid, vehHealth);



Re : one question - ricardo178 - 07.09.2012

Use OnVehicleUpdate to check if the HP went down and if so, take player HP...


Re: Re : one question - rumen98 - 07.09.2012

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
Use OnVehicleUpdate to check if the HP went down and if so, take player HP...
Can you create me a code ?


Re: one question - RanSEE - 07.09.2012

Quote:
Originally Posted by RanSEE
Посмотреть сообщение
Try this.

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
        new Float:vehHealth;
        GetVehicleHealth(vehicleid, vehHealth);
        SetPlayerHealth(playerid, vehHealth);
Can you even see ?