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

Autorun Sourcemod Commands on TF2 Server Startup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WatchersGrim
New Member
Join Date: Aug 2020
Old 08-12-2020 , 21:56   Autorun Sourcemod Commands on TF2 Server Startup
Reply With Quote #1

I just have a quick question. I'm working with setting up a very specific server and using all types of plugins on the server. I currently have it setup on my own VPS and not through a game server service. My question is if I have a plugin that runs on start and need my server to automatically run a specific command for that plugin to load a configuration startup, how would I do this.

For specifics, I am running TF2x10 that has a way of running custom configurations for items inside tf2.
I want to run the admin command sm_tf2x10_setmod [file name here]

How can I have this run after the initial setup as it wont specifically run on the server.cfg file as that runs before the sourcemod setup begins from my understanding.
WatchersGrim is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 08-17-2020 , 23:55   Re: Autorun Sourcemod Commands on TF2 Server Startup
Reply With Quote #2

I would test it in the server.cfg to be sure. If it doesn't work use the plugin "Map configs with prefix support 1.3" by the talented berni. Link: https://forums.alliedmods.net/showthread.php?p=607079
PC Gamer is offline
WatchersGrim
New Member
Join Date: Aug 2020
Old 08-18-2020 , 17:42   Re: Autorun Sourcemod Commands on TF2 Server Startup
Reply With Quote #3

I tried editing the server config file for startup but didnt work. Ill try the per map config plugin and if anything Ill just change the default config for the plugin. Thanks still!
WatchersGrim is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-21-2020 , 02:39   Re: Autorun Sourcemod Commands on TF2 Server Startup
Reply With Quote #4

SourceMod should be loaded by the time server.cfg is executed, but you can always put it in sourcemod.cfg
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

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 04:56.


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