Hit/Damage Indicator - 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: Hit/Damage Indicator (
/showthread.php?tid=400170)
Hit/Damage Indicator -
Sting. - 17.12.2012
Hello does anyone know a good damage or hit indicator for DM scripts? Nowdays, every DM scripts uses that so players know when they really damaged a player or not. Thanks.
Re: Hit/Damage Indicator -
Sting. - 17.12.2012
Nothing no scripts? I did do searching but the download was terminated so the next best thing was to ask for community help.
Re: Hit/Damage Indicator -
Jernu - 17.12.2012
You mean like when someone shoots another play it plays a sound? Well, that's simple.
Download OPSP include by Wups and add OnPlayerShootPlayer to your GM and everytime a killer shoots the player, PlaySound.
Re: Hit/Damage Indicator -
Sting. - 17.12.2012
Thanks for replying. Thanks +REP.
Re: Hit/Damage Indicator -
Jaxson - 17.12.2012
It's quite simple, you don't need a filterscript. . . Use
PlayerPlaySound under the public callback
OnPlayerTakeDamage.
Re: Hit/Damage Indicator -
Sting. - 17.12.2012
Ok Thanks but which one use OPSP or OnPlayerTakeDamage or can I use either one of them?
Re: Hit/Damage Indicator -
Jaxson - 17.12.2012
I recommend to use OnPlayerTakeDamage option as it is more accurate and optimized.
Re: Hit/Damage Indicator -
ViniBorn - 17.12.2012
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Re: Hit/Damage Indicator -
Jernu - 17.12.2012
Quote:
Originally Posted by RTR12
Ok Thanks but which one use OPSP or OnPlayerTakeDamage or can I use either one of them?
|
OnPlayerTakeDamage will be more accurate.
However, both will work.
Re: Hit/Damage Indicator -
Sting. - 17.12.2012
Alright this is a big favor to ask but could you give me the code of showing me how to do this. While in the process as the
attacker hears the sound to the id that I've set it to, could a ClientMessage be sent to him,
SendClientMessage(attacker, Color... Showing him the amount of damage he made to the victim and the remaining amount of health left? I'm not good with the floats and stuff... Lol.