About NPC's
#1

Hi, I am thinking of a new gamemode to be released, and I've seen the greatest gamemode(sarcastically) ever. The problem is, I do not know how to do it with NPC's. You may think there are many NPC Tutorials around, but, I've been wondering if "the players CAN attack the NPCs and the NPCs will reduce health, until they die?" Sorry, just noob about NPCs
Reply
#2

OnPlayerGiveDamage callback is called for NPCs as well. That has been introduced in the latest version of SA-MP.
Reply
#3

I don't understand it, please, can you say some of it? ;p
Reply
#4

As riddick said,and you can use OnPlayerGiveDamage and detect if the damaged id is an npc,if yes then give him - amount of health,like if the npc was shot by minigun so give him -60 hp or...just like that
Reply
#5

Okay,thank you for your answer. Scripting time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)