View Single Post
Old 02-26-2020   #3
Icezer
 
Icezer's Avatar
Default

Quote:
Originally Posted by Rapidgame7 View Post
Are you talking about commands or CVars?

For CVars, you need to apply the CV_NETVAR flag for it to become admin-only.
For commands, giving the COM_ADMIN flag to the third argument of COM_AddCommand will make the command admin-only. (This is not documented on the wiki yet)

If you are making the command host only, check that the command executor is server. server is always the host.

Tried putting a check including server at the start and it works perfectly now. Don't know why I didn't think of using that argument myself, to be honest. Thanks for the help, it's always appreciated.
__________________
That guy who likes King Dedede.
Icezer is online now   Reply With Quote