SA-MP Forums Archive
How can I add NPC's? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How can I add NPC's? (/showthread.php?tid=483597)



How can I add NPC's? - SkeletonBeat - 26.12.2013

How do I get people walking around like they do in single player mode?

My file:

Код:
lanmode 0
rcon_password *******
hostname Santa
gamemode0 grandlarc 1
filterscripts base gl_actions gl_property gl_realtime
weburl pornhub.com
maxnpc 10000000
onfoot_rate 90
incar_rate 1
weapon_rate 40
stream_distance 300.0
stream_rate 1000



Re: How can I add NPC's? - Twizted - 26.12.2013

https://sampforum.blast.hk/showthread.php?tid=95034

Search next time. That's a nice webpage you have there anyway.


Re: How can I add NPC's? - SkeletonBeat - 26.12.2013

I wanted to search but I don't know the 'terms' to put into it so I figured a post would be quicker.


Re: How can I add NPC's? - Twizted - 27.12.2013

Alright, pal, that shouldn't be a serious problem. Did you get it to work?


Re: How can I add NPC's? - SkeletonBeat - 28.12.2013

I haven't tried it yet, But since you bumped this I guess I can ask a question regarding the post you linked me to.

From reading through it, It looks as though I can only add 1 NPC at a time and I need to get the Co-ord's for each one?


Re: How can I add NPC's? - Isolated - 28.12.2013

Yes. However I'm sure you could create an array for coords. Then randomly select it for each NPC, also the same with skin ids etc... Even names. If you wanted to create it more like singleplayer.


Re: How can I add NPC's? - Mauzen - 28.12.2013

You cant add npcs like the sinlgeplayer pedestrians. Normal npcs are more like "programmed robots" that just do what you previously recorded for them, and dont interact with other players or take damage when hit.
There are ways to realize this with stuff like fcnpc or rnpc, but its a really complex job to get anything like in singleplayer.