SA-MP Forums Archive
vehicle explodes - 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: vehicle explodes (/showthread.php?tid=461224)



vehicle explodes - Drek - 31.08.2013

hello,

I have a little problem when I get into a vehicle does it matter if he become on fire and explodes, I see no problem or just ..

Thank you for explanations and helps future.

Sincerely,
Drek.


Re: vehicle explodes - AaronKillz - 31.08.2013

I don't know what you're asking.


Re : vehicle explodes - Drek - 31.08.2013

It's simple whenever someone enters a vehicle, the vehicle that destroyed (in fire and exploded thereafter)


Re : vehicle explodes - PakPak - 01.09.2013

Give me your "public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)".


Re : vehicle explodes - Drek - 01.09.2013

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsPlayerNPC(playerid))
    {
        return 1;
    }
   	new Float:health = Vehicule[vehicleid][v_Health];
 	SetVehicleHealth(vehicleid, health);
    return 1;
}



Re : vehicle explodes - Drek - 01.09.2013

Up please...


Re : vehicle explodes - PakPak - 01.09.2013

Did you save vehicules health on your "OnPlayerExitVehicle" ?


PS : Darek ?


Re : vehicle explodes - Drek - 01.09.2013

No, I do not save the life of the vehicle when exiting the players.

ps: No


Re : vehicle explodes - PakPak - 01.09.2013

pawn Код:
new Float:health = Vehicule[vehicleid][v_Health];
    SetVehicleHealth(vehicleid, health);
Why did you use this ?