simplify
Is it possible to simplify this code? It must have 2 conditions.
PHP Code:
|
Re: simplify
PHP Code:
|
Re: simplify
You don't need to check if the player is connected on Ham_Item_Deploy hook.
Code:
|
Re: simplify
Final look:
PHP Code:
|
Re: simplify
The id being within range may not be needed but it's cheap insurance to throw it in there.
PHP Code:
|
Re: simplify
Quote:
|
Re: simplify
Quote:
|
Re: simplify
In normal circumstances, but I suppose other plugins/mods could trigger deploy on knife by a non-player entity. It's not making your server CPU sweat by having it, and there's a good chance you'd not get an error without it. I did mention this in my post, that you can likely get away without it.
|
| All times are GMT -4. The time now is 21:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.