View Single Post
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-07-2020 , 13:51   Re: Create Edict Fixer.
Reply With Quote #177

enderandrew... I've had success using the "[ANY] Security entity limit" plugin written by the talented Benoist3012 (link: https://forums.alliedmods.net/showthread.php?p=2316579).

I use lots of plugins and even with the plugin the server crashed a few times. As a result, I added a few lines of code that executes a config file when the number of edicts gets too high. In the exec file are commands to unload a couple of plugins to help reduce the number of edicts created.

edited portion of code:
PHP Code:
        if (iEntity >= 1950)
        {
            if (
g_bLogActions && !g_bCleaningMode && iEntity 2000)
            {
                
LogMessage("[SEL]The server is close of the limit, cleanning mode enabled");
                
g_bCleaningMode true;
                
PrintToServer("[SEL]Server is close to Entity limit. Cleaning mode enabled.");
                
ServerCommand("exec lagimprove.cfg");
                
PrintToServer("[SEL]Unloaded Random Bot Cosmetic and Weapon plugins.");                
            } 
cfg/lagimprove.cfg
PHP Code:
sm plugins unload givebotsweapons
sm plugins unload givebotscosmetics
sm_say Unloaded Random Bot Cosmetics 
and Weapons 
Once I did that the crashes stopped completely. The plugin works well without modification but if you still get crashes consider modding the plugin as needed.

Last edited by PC Gamer; 08-07-2020 at 13:51.
PC Gamer is offline