RSSy MYGO.pl Opublikowano Grudzień 21, 2022 o 20:45 RSSy Udostępnij Opublikowano Grudzień 21, 2022 o 20:45 Edict Limiter This plugin prevents the server from crashing because of no remaining free edicts, crash known as "ED_Alloc: no free edicts". When there's more or equal than 2042 edicts no further entities will be allowed to be created unless the edict count goes below 2042.Note When there are no left edicts (2048 max) the plugins prevents the creation of any new entities. Improperly coded plugins will start throwing errors, as they won't check whether their newly created entity was actually created, I do not take any responsibility for such errors.Forwards PHP Code: forward void OnEntityLockdown(); // Fired when an edict limit is reached, only once per round. Use this to cleanup less useful entities. Natives PHP Code: native int GetEdictCount(); // Returns current count of edicts, edicts are stored in a variable and changed in realtime. There should be no performance hit calling this native RequirementsDHooks 2 with detours Attached Files EdictLimiter.zip (9.4 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi