SA-MP Forums Archive
Server crashing upon kills - 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: Server crashing upon kills (/showthread.php?tid=443693)



Server crashing upon kills - Slaykler - 13.06.2013

Okay so we have 250 NPC Zombies, we are planning to hit 400 NPC zombies.

What is the limit of NPcs can be done in a server?

Cause when we have 250 npcs, the server will crash after someone kills like 10 of them

Suggestions would be helpful


Re : Server crashing upon kills - Sandiel - 13.06.2013

Well the maximum number of NPCs you can have on your server is 500 as I believe it was (maybe changed in the last update) as NPCs work the same as players do, so if your server has just 50 slots, then it's 50 slots.
About the crashing, posting OnPlayerDisconnect, OnPlayerDeath callbacks would be helpfull I suppose.


Re: Server crashing upon kills - ReVo_ - 13.06.2013

100 slots = 100 npc / 1000 slots = 1000 npc.

Post your OnPlayerdeath code, or what you use to detect NPC death.