SA-MP Forums Archive
NPC is getting kicked by Server - 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: NPC is getting kicked by Server (/showthread.php?tid=249837)



NPC is getting kicked by Server - MrND - 20.04.2011

Okay, I have installed 28 NPCs and only 21 connect. All other are getting kicked by my Server, do anybody know why is this, and how can I fix this?


Re: NPC is getting kicked by Server - boelie - 20.04.2011

tell us more..like;
what do you have in server.cfg
show us some code like whats under onplayerspawn

right now i can only guess;

the ammount of npc in server.cfg is below 28


Re: NPC is getting kicked by Server - MrND - 20.04.2011

Nah, nah I don't need to give you NPC codes because every NPC has been made same way(21 is working other 7 isn't), I have checked everything, this is not my wrong. I have found post by Kalcor that SA-MP kick more than 20 NPCs because of flood, so idk how to increase that or make some pwn code, does anyone know how to repair this?


Re: NPC is getting kicked by Server - TheYoungCapone - 20.04.2011

Check if they all have the right #define RECORDING_TYPE


Re: NPC is getting kicked by Server - admantis - 20.04.2011

Make sure your max_npcs ammount is above the required.


Re: NPC is getting kicked by Server - rekatluos - 20.04.2011

i'll presume you have a login system .... you'll need to add a piece of code like "if isplayernpc" . i forgot how that was but you can search for it


Re: NPC is getting kicked by Server - MrND - 20.04.2011

I've found fix for this: http://pastebin.com/kJ90B0gr
They'all connect now and work fine as I made them :P
Thank you anyway