Raised This Month: $32 Target: $400
 8% 

autoexec.cfg to execute sm_ commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
M3Power
Member
Join Date: Apr 2017
Old 04-08-2017 , 09:08   autoexec.cfg to execute sm_ commands
Reply With Quote #1

Hello,

I'd like that my servers autoexec.cfg would execute some commands immediately after server restart, for example I would like to execute a command "sm_restrict awp 0 both". I've wrote that into autoexec.cfg but the command is not executed/not applied when I enter the server.

What am I doing wrong. Or is it even possible to execute sm_ commands in this way (through autoexec.cfg)?

Here is my autoexec.cfg:


Last edited by M3Power; 04-08-2017 at 09:09.
M3Power is offline
sdz
Senior Member
Join Date: Feb 2012
Old 04-08-2017 , 10:42   Re: autoexec.cfg to execute sm_ commands
Reply With Quote #2

if you're using CS:GO, I've personally never ever had an autoexec.cfg work for me. Try putting it in server.cfg instead?
sdz is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-08-2017 , 11:09   Re: autoexec.cfg to execute sm_ commands
Reply With Quote #3

autoexec is executed before SourceMod is loaded.
__________________
asherkin is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 04-08-2017 , 12:11   Re: autoexec.cfg to execute sm_ commands
Reply With Quote #4

yeah , you cannot use sm commands using autoexec.cfg cause i get executed before sourcemod even load (more like what you put into bat/sh run script)
__________________
ambn 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 16:37.


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