SA-MP Forums Archive
NPC connection problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC connection problem (/showthread.php?tid=385790)



NPC connection problem - BloodyEric - 17.10.2012

When trying to connect a npc the incomming connection message appears in the console but the npc never actually connects. The problem occurs randomly after dozents of NPC connected successfully. Even when trying to connect another NPC the problem remains. It is not related to the maxnpc setting in the server.cfg and is also not related to the NPCs name and the connection frequency.


Any ideas?


Re: NPC connection problem - Red_Dragon. - 17.10.2012

How many NPC you use ? what NPC recorder or program you use ?


AW: NPC connection problem - BloodyEric - 17.10.2012

Around 150, all recorded ingame.


Re: NPC connection problem - xDeadlyBoy - 17.10.2012

put this:
PHP код:
if(IsPlayerNPC(playerid))return 1
in the start of:
Код:
OnPlayerConnect
OnPlayerRequestClass
OnPlayerRequestSpawn
OnPlayerSpawn
in your gamemode and all the filterscripts you use.


AW: NPC connection problem - BloodyEric - 18.10.2012

Done already, didn't solve the problem...


Re: NPC connection problem - Red_Dragon. - 18.10.2012

What is your MAX_NPC in server.cfg file ?


AW: NPC connection problem - BloodyEric - 18.10.2012

200, a lot more than I actually want to connect.


Re: NPC connection problem - Red_Dragon. - 18.10.2012

Do all NPCs connect or some yes and some no or what ?


AW: NPC connection problem - BloodyEric - 18.10.2012

All NPCS connect correctly until the first connection fails, then no further NPC seems to be able to connect.


Re: NPC connection problem - Red_Dragon. - 18.10.2012

How all connect THEN THE FIRST ONE DOES NOT CONNECT !?!?!?!?!