Enable/Disable
What code can I put in this plugin to player enable / disable hud with chat command, I tried with bool but I cant
|
Re: Enable/Disable
Show your code.
|
Re: Enable/Disable
PHP Code:
|
Re: Enable/Disable
My code with bool:
PHP Code:
PHP Code:
|
Re: Enable/Disable
Something like this... You don't even need a variable.
PHP Code:
|
Re: Enable/Disable
PHP Code:
|
Re: Enable/Disable
Yeah, it's a little bit sucky, but I couldn't think of another good way (i would do it with entity)...
Anyway - I'm setting an index to the task (in this case it's 123) and checking if it exists and then remove it or set it again. I used the ".flags" to set the flags directly without these "_" ... |
Re: Enable/Disable
Now when I type /hide_hud, hud message was hide for whole server :D
Can you fix that? (sorry for bump, I need it realy, sorry) |
Re: Enable/Disable
You want it to hide the message only for the player that typed the command?
|
Re: Enable/Disable
Yes :)
|
| All times are GMT -4. The time now is 07:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.