Posts: 151
Threads: 30
Joined: Oct 2009
Reputation:
0
i've tested on a blank gamemode same thing. What i am missing?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Try to check your server.cfg file, the max_npc is set to 0 by default.
Raise it to have NPC's.
Posts: 151
Threads: 30
Joined: Oct 2009
Reputation:
0
it's set to 1. I have 1 NPC.
Posts: 151
Threads: 30
Joined: Oct 2009
Reputation:
0
It doesn't spawn. I don't know why.....
Posts: 296
Threads: 9
Joined: Oct 2011
Reputation:
0
It shouldn't spawn under OnPlayerConnect, i think. Try putting the SpawnPlayer function under OnPlayerRequestClass instead.
Also, if you have a user system requiring registration and/or passwords the NPC isn't automatically exempt from that, so you'd have to make NPC's bypass this in the script.