NPC problem. (Will +Rep)
#1

I have a zombie event within my server. This is the only thing adding NPC's into my server.

I have zombies continuously being connected to my server. The first 5-8 NPC's connect and work properly. But after that whenever a NPC trys to connect it just leaves almost instantly after it connects. I don't see them connecting ingame but it shows up in the console.

I have a function to avoid them having to log in.

Код:
OnPlayerConnect(playerid);
{
if(IsPlayerNPC(playerid)){ SpawnPlayer(playerid); }
}

&&

public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)){ SpawnPlayer(playerid); }
}
I don't know what could be causing it! D:
Reply
#2

UPDATE:
I tried reconnecting to it once i noticed it wasn't allowing NPC's to join and i noticed that i kept 'loosing connection' to the server then connected again. This kept repeating itself
Reply
#3

bump?
Reply
#4

Tried checking 'maxnpcs' in your server.cfg file?
Reply
#5

Don't use SpawnPlayer, they spawn automatically. Just return 1 if they are an NPC.
Reply
#6

Thank you Mp2! . Rep'd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)