AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Clear Model Cache (https://forums.alliedmods.net/showthread.php?t=11398)

dcyuri7 03-18-2005 09:57

Clear Model Cache
 
When a client is respawned, (twice of course, which allows for weapon generation) they leave a "corpse", so to say. Upon round start, all of those "corpses" that have been sitting there lagging the server down, are cleared. Obviously a method is executed between that time, and I was hoping that someone might know that method for clearing those models from the server....?

I believe keeping my server lag free is extremely important. Also, I remember from a plugin I used in AMX mod that would spit out models in the direction your aiming. After a while, they would dissapear. So that means that somewhere..... there is a function for doing this.
Any help is greatly appreciated.

Twilight Suzuka 03-18-2005 15:32

Its a very simple remove_entity function.

dcyuri7 03-20-2005 00:41

thanks. 8)

dcyuri7 03-20-2005 17:48

It is too bad that it crashes the server.

T(+)rget 03-20-2005 21:12

Incorrect usage of respawn native you should never attempt to respawn someone twice which = what you have dead bodies floating around the map. Suprised AMXX Team hasn't fixed this native yet :roll:

set deadflags to respawnable
reset the iuser1 data to 0 for the camera
then respawn the client


All times are GMT -4. The time now is 14:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.