Removing entity on player disconnect.
When a player disconnect from the server, I use this code for abolishing its entities.
PHP Code:
|
Re: Removing entity on player disconnect.
Did you test it?
BTW, instead of calling native twice, cache the result.:) |
Re: Removing entity on player disconnect.
Yes, I test it and working, but sometime i see error in the server console that shows code in first post.
|
Re: Removing entity on player disconnect.
What is the error?
|
Re: Removing entity on player disconnect.
Check if the ent is valid before removing it.
|
Re: Removing entity on player disconnect.
Quote:
|
Re: Removing entity on player disconnect.
Quote:
|
Re: Removing entity on player disconnect.
Quote:
|
Re: Removing entity on player disconnect.
see my thread please:
https://forums.alliedmods.net/showthread.php?t=246902 |
Re: Removing entity on player disconnect.
The error is:
Code:
L 12/13/2014 - 18:59:18: [ENGINE] Invalid entity 112 |
| All times are GMT -4. The time now is 15:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.