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



sound - hillko - 11.09.2014

how to make when shooting in contact with a man played the sound


Re: sound - AroseKhanNiazi - 11.09.2014

OnPlayerWeaponShoot....


Re: sound - hillko - 11.09.2014

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
OnPlayerWeaponShoot....
and the code what to write ?


Re: sound - Stinged - 11.09.2014

OnPlayerGiveDamage, and play sound to the playerid.


Re: sound - hillko - 11.09.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
OnPlayerGiveDamage, and play sound to the playerid.
Код HTML:
public OnPlayerGiveDamage
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
return 1;
}
so ?


Re: sound - Stinged - 11.09.2014

1) It's public not publik
2) Where are OnPlayerGiveDamage's parameters?

Fix them and it should work.


Re: sound - hillko - 11.09.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
1) It's public not publik
2) Where are OnPlayerGiveDamage's parameters?

Fix them and it should work.
please write the full code!


Re: sound - Stinged - 11.09.2014

Don't you understand that this is not a request section?
I told you everything you need to know. Now go to sa-mp wiki and learn by yourself.


Re: sound - hillko - 11.09.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Don't you understand that this is not a request section?
I told you everything you need to know. Now go to sa-mp wiki and learn by yourself.
Карты
Маркет
Перевод
Яндекс.Перевод
there is no such that when shooting at a person when getting played sound


Re: sound - Stinged - 11.09.2014

If you want to speak Russian, go to the Russian section..

I didn't tell you to search "when shooting at a person when getting played sound"
I told you the name of the callback, what you could have done is:
******.com > samp wiki OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage

Use that callback with the correct parameters and add that PlayerPlaySound you got there.