SA-MP Forums Archive
npcs on 0.3b R2 isent working.... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: npcs on 0.3b R2 isent working.... (/showthread.php?tid=176526)



npcs on 0.3b R2 isent working.... - Owenlishious - 13.09.2010

i pretty much tried everything...i recompiled everything with 0.3b R2 includes, i recompiled everything....re-recorded on foot records and even vehicles....

nothing is working here...all i see is an incomming connection but nothing connects to the server...

am i forgetting somthing? -_-


Re: npcs on 0.3b R2 isent working.... - silvan - 14.09.2010

for me npc's are working fine in 0.3b R2 version.

Make sure:
-> There is nothing that may interfear with the NPC to spawn such as Dialogs and stuff.
-> put this code in some callbacks that the NPC would need to use

under the callbacks:
OnPlayerSpawn
OnPlayerConnect
OnPlayerRequestClass
OnPlayerRequestSpawn

Код:
  if(IsPlayerNPC(playerid)) return 1;



Re: npcs on 0.3b R2 isent working.... - rbN. - 14.09.2010

Go to your server.cfg, then add 'maxnpcs [number of your NPCs]' (example, I want 10 NPCs to join, I do 'maxnpcs 10' in my server.cfg, without the ') if you didn't do that yet. That should fix the problem .