Hi,
I've seen some plugins have in their config a section where you can set which flag is the servers' VIP-group and such.
I know that it's better to use command-override for commands instead of doing it in the config, but out of curiosity; how would I be able to set a commands' flag from a section of my config?
Example:
PHP Code:
ConVar cv_admFlag;
cv_admFlag = CreateConVar("sm_plugin_adminflag", "b", "The flag required to execute admin commands for this plugin.", FCVAR_NOTIFY);
RegAdminCmd("sm_mycommand", Command_MyCommand, cv_admFlag);
Getting the stringvalue of the flag obviously don't work since it's not a string parameter that's needed in the code.
So how can I do this??
__________________