Removing weaponbox crashes server
Hi. I created code for simple DM, all works fine. Then I realised, that after 20 mins of 32 players game whole map is covered with dropped weapons.
So i wrote next plugin: plugin_init: RegisterHam(Ham_Spawn, "weaponbox", "clear_weapon", 1); public clear_weapon(id): fm_remove_entity(id) After few mins of play server crashes. I use original STEAM (no dproto / cracks etc) Code:
meta listWhat should i do? |
Re: Removing weaponbox crashes server
fm_remove_entity
--> call_think |
Re: Removing weaponbox crashes server
Why don't you set csdm.cfg (.ini ?) so it auto removes dropped weapons ?
|
Re: Removing weaponbox crashes server
because he is not running csdm...
|
Re: Removing weaponbox crashes server
This works fine :
RegisterHam( Ham_Touch, "weaponbox", "WeaponBox_Touch", 1 ) public WeaponBox_Touch(iEnt/*, iOther*/) { dllfunc(DLLFunc_Think, iEnt) } |
Re: Removing weaponbox crashes server
problem solved by changing fm_remove_entity -> dllfunc callthink. Thanks + close
|
Re: Removing weaponbox crashes server
Quote:
|
| All times are GMT -4. The time now is 14:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.