Gun shot sound? - 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: Gun shot sound? (
/showthread.php?tid=609297)
Gun shot sound? -
Bondage - 10.06.2016
I dont know the new features of samp, ive seen in some servers they've added sound while we shoot anyone, once it hits the body. Can anyone tell me how could that be added?
Re: Gun shot sound? -
Alpay0098 - 11.06.2016
You can use below sound (beep) on many functions like OnPlayerGiveDamage or OnPlayerTakeDamage (or includes like OPSP) :
PHP код:
PlayerPlaySound(XYZ, 1057, 0.0, 0.0, 0.0);
XYZ is ID (On some functions like OnPlayerGiveDamage , it's damagedid and in some cases it's playerid and blah blah you know these)
Re: Gun shot sound? - WhiteGhost - 11.06.2016
Onplayertakedamage()
PlayerPlaySound