npc just says incoming connection
#1

i've tested on a blank gamemode same thing. What i am missing?
Reply
#2

Try to check your server.cfg file, the max_npc is set to 0 by default.
Raise it to have NPC's.
Reply
#3

it's set to 1. I have 1 NPC.
Reply
#4

BUMP
Reply
#5

Is it working then?
Reply
#6

It doesn't spawn. I don't know why.....
Reply
#7

Try putting the following code right under "OnPlayerConnect"

Code:
if(IsPlayerNPC(playerid))
{
   SpawnPlayer(playerid);
   return 1;
}
Reply
#8

Still doesn't work......
Reply
#9

BUMP
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)