Remove weapon entity after death?
Hello.
I made a plugin which enables a menu for weapons (like in csdm) and respawns you when you death. So after 5 minutes later in any map, there are a lot of empty weapons on the floor dropped by death players. How can I remove these weapons after his owner's death? I think CSDM does this. |
Re: Remove weapon entity after death?
:-/
PHP Code:
|
Re: Remove weapon entity after death?
It does not work for me :=(
PHP Code:
|
Re: Remove weapon entity after death?
I use this method in one of my plugins and it works perfectly.
http://forums.alliedmods.net/showthr...te+weapon+drop |
Re: Remove weapon entity after death?
Quote:
|
Re: Remove weapon entity after death?
To do things safely and efficiently you sometimes need more than a small function.
|
Re: Remove weapon entity after death?
I edited the code a bit so when a weapon is dropped it will get deleted from the map. You can get it to work as you want it to with some extra variables and if statements.
PHP Code:
|
| All times are GMT -4. The time now is 17:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.