Raised This Month: $ Target: $400
 0% 

executing commands at server startup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn1p3rGT
Junior Member
Join Date: Oct 2008
Old 02-11-2010 , 16:05   executing commands at server startup
Reply With Quote #1

I've put commands like mp_buytime, mp_startmoney and commands of plugins into the server.cfg and amxx.cfg

when i start up the server, the commands don't take effect
i have to do a amx_restart in order for them to start working

Is there any way to do this easier?
Sn1p3rGT is offline
RaMMz
Member
Join Date: Nov 2009
Location: Rosario, Argentina
Old 02-11-2010 , 18:23   Re: executing commands at server startup
Reply With Quote #2

Edit the command line: add

+mp_buytime 9999 +mp_startmoney 16000

at the end, and actually, if your method is not working is because you are replacing those cvars for other ones setted later.
RaMMz is offline
Send a message via ICQ to RaMMz Send a message via MSN to RaMMz Send a message via Yahoo to RaMMz Send a message via Skype™ to RaMMz
Sn1p3rGT
Junior Member
Join Date: Oct 2008
Old 02-12-2010 , 11:33   Re: executing commands at server startup
Reply With Quote #3

thanks, I'll give this a go

and about the last part,
I have checked the values of the commands after starting the server, they are what i set them to, they just don't work.

-edit-
oh and whats the difference between + and - on the command line?

Last edited by Sn1p3rGT; 02-12-2010 at 11:56.
Sn1p3rGT is offline
RaMMz
Member
Join Date: Nov 2009
Location: Rosario, Argentina
Old 02-12-2010 , 14:27   Re: executing commands at server startup
Reply With Quote #4

+cvar value
-command

Read this to learn more Command Line Options - Valve Developer Community
RaMMz is offline
Send a message via ICQ to RaMMz Send a message via MSN to RaMMz Send a message via Yahoo to RaMMz Send a message via Skype™ to RaMMz
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 02-12-2010 , 17:33   Re: executing commands at server startup
Reply With Quote #5

make a file example settings.cfg ..
then rcon_password "XX" -> rcon exec settings.cfg.
__________________
xtream.eSports Weil's einfach nur Geil ist !
www.xtream-esports.com
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
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 00:10.


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