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



Damage detect - Wesley221 - 05.11.2011

Hey guys,

Is there a way to detect what damage a grenade does on a player?
I dont want to know the default value, but when someone throws a grenade, how can i detect howmuch damage it did to someone that was around? Ive tried it with the callback OnPlayerGiveDamage thats in the 0.3d version, but that didnt detect grenade damage.

~Wesley


Re: Damage detect - Max_Coldheart - 05.11.2011

OnPlayerTakeDamage could do it, but there is ways to send false damage packets to the server, so that the server thinks that the damage has been received, when it really didn't receive it.


Re: Damage detect - Wesley221 - 05.11.2011

Alright, thats what i was looking for; this actually shows the damage done with a grenade