Quote:
Originally Posted by bdmj
Can someone please help me setup a admin override. I have a Left 4 Dead Server and I'm trying to get this mod to work only for me....... https://forums.alliedmods.net/showthread.php?p=488779
I have been to the wiki page for it and I still don't understand how to get it to work just for me. I tried posting on the mods webpage to no avail.
|
Since those commands are using RegConsoleCmd, your overrides aren't going to work.
Change line 60 and 61:
Code:
RegConsoleCmd("+sm_jetpack", JetpackP, "", FCVAR_GAMEDLL);
RegConsoleCmd("-sm_jetpack", JetpackM, "", FCVAR_GAMEDLL);
to:
Code:
RegAdminCmd("+sm_jetpack", JetpackP, ADMFLAG_ROOT, "", FCVAR_GAMEDLL);
RegAdminCmd("-sm_jetpack", JetpackM, ADMFLAG_ROOT, "", FCVAR_GAMEDLL);
and then recompile it.