streamer blocking actor getting damaged - 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: streamer blocking actor getting damaged (
/showthread.php?tid=646310)
streamer blocking actor getting damaged -
Saddin - 14.12.2017
Any way to make actor getting damaged work with using streamer?
Re: streamer blocking actor getting damaged -
jasperschellekens - 14.12.2017
did you use the OnPlayerGiveDamageActor callback?
which streamer plugin u using?
Re: streamer blocking actor getting damaged -
Saddin - 14.12.2017
Quote:
Originally Posted by jasperschellekens
did you use the OnPlayerGiveDamageActor callback?
which streamer plugin u using?
|
I'm using ped include
https://sampforum.blast.hk/showthread.php?tid=572366 and all of its callbacks
Re: streamer blocking actor getting damaged -
jasperschellekens - 14.12.2017
pawn Code:
public PED_OnTakeDamage(pedid, issuerid, weaponid, Float:amount, bodypart)
Re: streamer blocking actor getting damaged -
ISmokezU - 14.12.2017
Yes, Downgrade.
I think 2.9.2 has a bug to prevent this, downgrade and it should work.
Re: streamer blocking actor getting damaged -
NaS - 15.12.2017
Just use OnPlayerGiveDamageDynamicActor and set the health of the actors manually.
eg:
Code:
new Float:heath;
GetDynamicActorHealth(actorid, health);
SetDynamicActorHealth(actorid, health - amount);
If your actors play any animations, use ClearDynamicActorAnimations() before "killing" them with SetDynamicActorHealth.