Hit/Damage Indicator
#1

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.
Reply
#2

Nothing no scripts? I did do searching but the download was terminated so the next best thing was to ask for community help.
Reply
#3

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.
Reply
#4

Thanks for replying. Thanks +REP.
Reply
#5

It's quite simple, you don't need a filterscript. . . Use PlayerPlaySound under the public callback OnPlayerTakeDamage.
Reply
#6

Ok Thanks but which one use OPSP or OnPlayerTakeDamage or can I use either one of them?
Reply
#7

I recommend to use OnPlayerTakeDamage option as it is more accurate and optimized.
Reply
#8

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)