*CLOSED*
#1

Is it possible to make a NPC not invencible?
And if Yes How?
Thanks
Reply
#2

yes its possible , i don't know how , but i saw a gamemode or filterscript called [npc zombies] search and u will find it , and maybe from this script u will learn how to make them killalbe
________
Subaru ej engine
Reply
#3

Ok i will search for it thanks alot man
Reply
#4

Quote:
Originally Posted by aircombat
yes its possible , i don't know how , but i saw a gamemode or filterscript called [npc zombies] search and u will find it , and maybe from this script u will learn how to make them killalbe
Is not a perfect system, but it works =D
Reply
#5

I found the filterscript and if i'm not wrong he used a timer?
It was something like If the player shoots the npc *number of times* setplayerhealth(playerid, 0.0);
Reply
#6

Quote:
Originally Posted by Epic Shower
I found the filterscript and if i'm not wrong he used a timer?
It was something like If the player shoots the npc *number of times* setplayerhealth(playerid, 0.0);
I created a variable (LastZombieHealth) and set it down when player shoot at the X distance and pointing at the zombie, so when it reaches 0 I make the npc 'die' (SetPlayerHeath) and kick him.
Reply
#7

Could you please post an example of that code?
I'm just a bit confused with wich codes i'll have to use.
Thanks.
Reply
#8

Quote:
Originally Posted by Epic Shower
Could you please post an example of that code?
I'm just a bit confused with wich codes i'll have to use.
Thanks.
I'll try to post you a working code as soon as i get home. (like in 1h30m).
Reply
#9

Ok.
Thank you very much
Reply
#10

http://forum.sa-mp.com/index.php?topic=153482.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)