SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/12/2017, 06:51 PM   #1
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 372
Reputation: 35
Default streamer blocking actor getting damaged

Any way to make actor getting damaged work with using streamer?
Saddin is offline   Reply With Quote
Old 14/12/2017, 07:26 PM   #2
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,077
Reputation: 126
Default Re: streamer blocking actor getting damaged

did you use the OnPlayerGiveDamageActor callback?
which streamer plugin u using?
__________________
If you want to have your own custom script, or even want to have one of our already released scripts, join our SCRIPTING SERVICES DISCORD, or send me a private message!


Undead Wasteland Roleplay - The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
Discord - Website
jasperschellekens is offline   Reply With Quote
Old 14/12/2017, 09:19 PM   #3
Saddin
Huge Clucker
 
Saddin's Avatar
 
Join Date: Mar 2011
Posts: 372
Reputation: 35
Default Re: streamer blocking actor getting damaged

Quote:
Originally Posted by jasperschellekens View Post
did you use the OnPlayerGiveDamageActor callback?
which streamer plugin u using?
I'm using ped include http://forum.sa-mp.com/showthread.php?t=572366 and all of its callbacks
Saddin is offline   Reply With Quote
Old 14/12/2017, 09:52 PM   #4
jasperschellekens
High-roller
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Holland
Posts: 1,077
Reputation: 126
Default Re: streamer blocking actor getting damaged

pawn Code:
public PED_OnTakeDamage(pedid, issuerid, weaponid, Float:amount, bodypart)
__________________
If you want to have your own custom script, or even want to have one of our already released scripts, join our SCRIPTING SERVICES DISCORD, or send me a private message!


Undead Wasteland Roleplay - The year is 1996. San Andreas is a wasteland ruled by the undead. the once so glorius landscape of San Andreas, is now a shattered decayed place that is only a vague memory of the world as we used to know it.
Discord - Website
jasperschellekens is offline   Reply With Quote
Old 14/12/2017, 11:05 PM   #5
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 542
Reputation: 75
Default Re: streamer blocking actor getting damaged

Yes, Downgrade.

I think 2.9.2 has a bug to prevent this, downgrade and it should work.
ISmokezU is offline   Reply With Quote
Old 15/12/2017, 05:17 AM   #6
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,783
Reputation: 619
Default Re: streamer blocking actor getting damaged

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.
NaS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] s_actors - Dynamic Actor's (complete functions) (streamer - library requires: YSI) Unrea1 Includes 19 05/04/2017 04:12 PM
Actor with Incognito Streamer Sk1lleD Scripting Help 1 11/07/2015 04:16 PM
Actor streamer Om3n Scripting Help 2 16/05/2015 03:54 PM


All times are GMT. The time now is 08:55 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.