Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
Make An NPC Lose Health Without CNPC?
The_Gangstas
Huge Clucker
Posts: 482
Threads: 84
Joined: Nov 2010
Reputation:
0
#1
11.12.2010, 13:45
is this possible?
Find
Reply
Jay_
Gangsta
Posts: 654
Threads: 20
Joined: Jul 2009
Reputation:
0
#2
11.12.2010, 13:47
nope
Find
Reply
Mauzen
High-roller
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
#3
11.12.2010, 14:09
Use wups' OnPlayerShootPlayer include and add an health array to store the "virtual health" for every NPC. Just set it to 100 on npc spawn.
In the shootplayer callback decrease the health, if it is 0 or lower, kill the npc
So it is possible
Find
Reply
The_Gangstas
Huge Clucker
Posts: 482
Threads: 84
Joined: Nov 2010
Reputation:
0
#4
11.12.2010, 14:23
already tried something with onplayerkeystatechange. setplayerhealth doesnt work on npcs ):
edit - oh wait, virtual health.. hmm
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 3 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive