Deleting entities without crashing server
Hello. I attempt to delete all of a certain entity from a map, with something like this:
Code:
public void OnEntityCreated(int entity, const char[] classname){ Is there any good way to accomplish this? |
Re: Deleting entities without crashing server
Use a SDKHook, SDKHook_SpawnPost, SDKHook_Spawn or RequestFrame hook, this is what i had to do.
Stripper is likely safe since it never spawns if you filter it away. https://forums.alliedmods.net/showthread.php?t=39439 |
Re: Deleting entities without crashing server
|
Re: Deleting entities without crashing server
Quote:
AcceptEntityInput("Kill") and RemoveEntity() are the same. |
Re: Deleting entities without crashing server
Quote:
Anyway, your SDKHook_SpawnPost or whatever did work, so thanks for that. |
Re: Deleting entities without crashing server
Quote:
|
All times are GMT -4. The time now is 11:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.