NPC 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 problem. (
/showthread.php?tid=396872)
NPC problem. -
sekol - 02.12.2012
Hello. I've tried to use Controllable NPC by Lorenc_, but I'm encountering weird problem.
https://sampforum.blast.hk/showthread.php?tid=301370
So. I've taken a clean gamemode, and I've just added a single line:
Код:
CreateCNPC("bot1", 7, 2808.0305,-1444.9749,16.2287);
When I add this line in OnGameModeInit I cannot even join the server, as it closes the connection with me, but when I add this line in OnPlayerSpawn I can join the server, it doesn't kick me, but NPC joins and leaves the server immadietly.
My maxnpc is set to 400. (yeah, i know it's many) So it's not the problem.
What could be wrong?
Re: NPC problem. -
Lz - 02.12.2012
You probably have a firewall so its kicking the npc
Re: NPC problem. -
sekol - 02.12.2012
No firewall.