Cars Blowing up ? - 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: Cars Blowing up ? (
/showthread.php?tid=308690)
Cars Blowing up ? -
[LHT]Bally - 04.01.2012
i want it so the cars dont blow up because then if someone is doing a mission then it is is annoying if you blow up .
i no that when the damage gets to 250 or below you blow up
i want it so that instead of blow up it says your vehicle broken down use /assistance
so no blowing up .
Re: Cars Blowing up ? -
[LHT]Bally - 06.01.2012
anyone?
Re: Cars Blowing up ? -
Outcast - 06.01.2012
Make it that if the vehicle health is less that 250 to turn off the engine (SetVehParamsEx or something like that, idk) and show an appropriate message.
Re : Cars Blowing up ? -
rbcrp - 07.01.2012
Код:
if(GetVehicleHealth(vehicleid) <= 250)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "Use ~r~ /assistance ~w~ to get help fixing you're car!", 3500, 4);
return 1;
}
if you need help with the ENTIRE script with the /assitance and everything then you can PM me, i can help you.