vulnerable npcs - 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: vulnerable npcs (
/showthread.php?tid=509206)
vulnerable npcs -
xDeadlyBoy - 25.04.2014
is it possible to make npcs vulnerable so you can shoot and kill them?
Re: vulnerable npcs -
quark - 25.04.2014
yes it is, search and u'll find
Re : vulnerable npcs -
Ramoboss - 25.04.2014
look at this
Re: Re : vulnerable npcs -
Pottus - 25.04.2014
Quote:
Originally Posted by Ramoboss
|
Are you kidding me dude? That is very old OnPlayerGiveDamage() is called when you shoot NPCs now.
Re : vulnerable npcs -
Ramoboss - 26.04.2014
no i'm not kidding x)
but it can be useful

I'm not gonna give him the full code, so i gave him an exemple, so he can see how doing a vulnerable NPC
Re: Re : vulnerable npcs -
xDeadlyBoy - 26.04.2014
Quote:
Originally Posted by quark
yes it is, search and u'll find
|
thanks for the help -.-
Quote:
Originally Posted by Ramoboss
|
does OnPlayerTakeDamage applies to NPCs? because if so, it'll be easier than i expected...
Re: Re : vulnerable npcs -
quark - 26.04.2014
Quote:
Originally Posted by xDeadlyBoy
thanks for the help -.-
does OnPlayerTakeDamage applies to NPCs? because if so, it'll be easier than i expected...
|
learn how to search
Re: Re : vulnerable npcs -
xDeadlyBoy - 26.04.2014
Quote:
Originally Posted by quark
learn how to search
|
wait, you think i didn't? you think i rather wait for "helpful" answers like yours instead of getting the answer immidately?
if you can't actually help - don't post.