SA-MP Forums Archive
car accident - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car accident (/showthread.php?tid=79172)



car accident - propilot - 26.05.2009

Eh' people

how to make when a car getting in car accident

there will be this sound

PlayerPlaySound(playerid, 1141, X, Y, Z);

when the car hits da car.



if it possible
lol


Re: car accident - miokie - 26.05.2009

You could track when the vehicle loses health and if the health goes down play the sound?


Re: car accident - Weirdosport - 26.05.2009

Or have a speedometer and if the velocity changes suddenly you could assume it was a crash...


Re: car accident - ettans - 26.05.2009

Make a timer to check the vehicles health , if the vehicles health suddenly lowers and if there's any cars near, play the sound.


Re: car accident - Luka P. - 26.05.2009


Quote:
Originally Posted by Ettans
Make a timer to check the vehicles health , if the vehicles health suddenly lowers and if there's any cars near, play the sound.
Quote:
Originally Posted by Weirdosport
Or have a speedometer and if the velocity changes suddenly you could assume it was a crash...
Quote:
Originally Posted by Miokie*
You could track when the vehicle loses health and if the health goes down play the sound?
But if he collision the wall,sound will play,he wants car accident,not every..
You can check if first vehicle is close to second vehicle,and both loses health,then that is car accident.


Luka[balkan-samp.com],
Sorry for my poor English


Re: car accident - propilot - 26.05.2009

Quote:
Originally Posted by Luka[balkan-samp.com
]

Quote:
Originally Posted by Ettans
Make a timer to check the vehicles health , if the vehicles health suddenly lowers and if there's any cars near, play the sound.
Quote:
Originally Posted by Weirdosport
Or have a speedometer and if the velocity changes suddenly you could assume it was a crash...
Quote:
Originally Posted by Miokie*
You could track when the vehicle loses health and if the health goes down play the sound?
But if he collision the wall,sound will play,he wants car accident,not every..
You can check if first vehicle is close to second vehicle,and both loses health,then that is car accident.


Luka[balkan-samp.com],
Sorry for my poor English
that was pro english xD

so is there any help how to make it??


Re: car accident - whooper - 26.05.2009

you english isn the "best."


Re: car accident - Correlli - 27.05.2009

Quote:
Originally Posted by propilot
so is there any help how to make it??
They gave you all help you need:

Quote:
Originally Posted by Luka[balkan-samp.com
]
Quote:
Originally Posted by Ettans
Make a timer to check the vehicles health , if the vehicles health suddenly lowers and if there's any cars near, play the sound.
Quote:
Originally Posted by Weirdosport
Or have a speedometer and if the velocity changes suddenly you could assume it was a crash...
Quote:
Originally Posted by Miokie*
You could track when the vehicle loses health and if the health goes down play the sound?
But if he collision the wall,sound will play,he wants car accident,not every..
You can check if first vehicle is close to second vehicle,and both loses health,then that is car accident.