NPC dont connect - 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 dont connect (
/showthread.php?tid=310683)
NPC dont connect -
cruising - 13.01.2012
Hello!
im trying to add my NPCs from my 3c script to my new 3d script, but they doesnt want to.
i have put this on all places they need to be, i have tried on the top and on the bottom of each function like login/register/connect etc..but they still not connect, they connect but they are not in game to be correct.
Is there enymore then this i need to add now in 3d?
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Re: NPC dont connect -
Mean - 13.01.2012
Have you tried changing the "maxnpc" line in server.cfg?
Re: NPC dont connect -
Jack_Leslie - 13.01.2012
Add the connect bot code on OnGameModeInit and put the IsPlayerNPC code at the TOP of OnPlayerConnect, OnPlayerSpawn and OnPlayerDisconnect. Sorry I can't provide examples I'm on my mobile.
Re: NPC dont connect -
cruising - 13.01.2012
Quote:
Originally Posted by Mean
Have you tried changing the "maxnpc" line in server.cfg?
|
Ah! that was my fail XD Thanks!!