SA-MP Forums Archive
Players cannot connect after adding an NPC. - 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: Players cannot connect after adding an NPC. (/showthread.php?tid=446066)



Players cannot connect after adding an NPC. - kristo - 24.06.2013

So, the problem started when I added a bus driver-NPC to my server (It's based on taxi_ls_test). When I added the following line:

ConnectNPC("Bussijuht_Jaanus", "lsbuss");

The players couldn't join my server. The progress stops at "joining the game." and after 30 seconds, the players got kicked. Server log shows me this:

[19:12:56] Incoming connection: xx.xxx.xx.xx:51638
[19:13:26] Kicking xx.xxx.xx.xx because they didn't logon to the game.

I also noticed that players could join when the NPC didn't spawn (I forgot to add an exception to OnPlayerRequestSpawn) but when it spawned, the players couldn't join anymore. Any advice?