[Include] RemoteRCON - Managing external RCON packets!
#12

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Thanks for the feedback! This was done a while ago(around maybe a year or so) where I wasn't as aware of the best practice - I'd love any further insight you have.

I've updated it to use your strcpy function. It will be automatically included into the script if INCLUDE_STRCPY_FALSE is not defined. If it is however defined it will simply be placed in as a static stock so it doesn't input itself throughout the rest of the script outside of the include. I have also added three functions to detect the status of the primary functions:
  • stock bool: RCON_IsWhitelistingEnabled()
  • stock bool: RCON_IsRemoteRCONEnabled()
  • stock bool: RCON_IsLoggingEnabled()
It's nice that you've updated using strcpy function, however you forgot to edit your "WhitelistIP" function. I've to also note that instead of declaring normal variables for the functions you mentioned above, it's better to use booleans since the only values they hold are 0 and 1. For further optimization I suggest you to use bit flagging method.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)