Raised This Month: $51 Target: $400
 12% 

Help With Admin Override


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bdmj
Member
Join Date: Jan 2010
Old 06-30-2021 , 18:37   Help With Admin Override
Reply With Quote #1

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.
__________________
bdmj is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-01-2021 , 10:13   Re: Help With Admin Override
Reply With Quote #2

Quote:
Originally Posted by bdmj View Post
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.
Sreaper is offline
bdmj
Member
Join Date: Jan 2010
Old 07-02-2021 , 16:30   Re: Help With Admin Override
Reply With Quote #3

Thanks but I have no clue how to recompile it lol. I need step by step instructions please.
__________________
bdmj is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-02-2021 , 23:59   Re: Help With Admin Override
Reply With Quote #4

Quote:
Originally Posted by bdmj View Post
Thanks but I have no clue how to recompile it lol. I need step by step instructions please.
Place jetpack.sp in your sourcemod/scripting folder. Make the said changes and then click compile.exe or drag jetpack.sp over spcomp.exe. Place the compiled .smx that will appear next to it in your plugins folder.

You can ignore any warnings the plugin will generate.

Last edited by Sreaper; 07-03-2021 at 00:00.
Sreaper is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-03-2021 , 09:31   Re: Help With Admin Override
Reply With Quote #5

It have been changed, long time ago.
You can override RegConsoleCmd from admin_overrides.cfg, not need edit plugin code and compile.

*edit
You can try it yourself. Try override SM commands like:
timeleft
nextmap
sm_settings
ff
motd
sm_searchcmd
sm_rtv
sm_nominate
Quote:
Originally Posted by Sreaper View Post
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.

Last edited by Bacardi; 07-03-2021 at 09:36.
Bacardi is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-03-2021 , 11:31   Re: Help With Admin Override
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
It have been changed, long time ago.
You can override RegConsoleCmd from admin_overrides.cfg, not need edit plugin code and compile.

*edit
You can try it yourself. Try override SM commands like:
timeleft
nextmap
sm_settings
ff
motd
sm_searchcmd
sm_rtv
sm_nominate
I wasn’t aware it was changed. Although funnily enough I was referencing a very old post of yours which mentioned RegConsoleCmd wasn’t compatible prior to posting my response.

Last edited by Sreaper; 07-03-2021 at 11:31.
Sreaper is offline
bdmj
Member
Join Date: Jan 2010
Old 07-03-2021 , 12:57   Re: Help With Admin Override
Reply With Quote #7

So if I don't need to change anything what is the exact command I need to put in the admin_overrides.cfg???
__________________
bdmj is offline
bdmj
Member
Join Date: Jan 2010
Old 07-03-2021 , 13:01   Re: Help With Admin Override
Reply With Quote #8

This is what I have in the adminoverrides.cfg:

"+sm_jetpack" "bz"
"-sm_jetpack" "bz"
"sm_jetpack" "bz"

What is wrong and what is the correct command I need to make this plugin work only for me???
__________________
bdmj is offline
bdmj
Member
Join Date: Jan 2010
Old 07-03-2021 , 14:07   Re: Help With Admin Override
Reply With Quote #9

I tried changing the lines and recompiling but it didnt produce a .smx file anywhere. There was an error like you said but the .smx was not created. Can you please change, compile and send me the edited .smx file????
__________________
bdmj is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-03-2021 , 17:14   Re: Help With Admin Override
Reply With Quote #10

change level or use server command: sm_reloadadmins
Attached Files
File Type: cfg admin_overrides.cfg (883 Bytes, 29 views)
__________________
Do not Private Message @me
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode