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

Run a command on round start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dotexe
Senior Member
Join Date: Aug 2013
Old 11-12-2014 , 20:09   Run a command on round start
Reply With Quote #1

Could anyone create a plugin that could run a series of commands on round start? I tried searching for a plugin but there are none out there that can do this.
dotexe is offline
API
Veteran Member
Join Date: May 2006
Old 11-12-2014 , 20:49   Re: Run a command on round start
Reply With Quote #2

Sure, why not. Feel free to modify, but by default it executes on_round_start.cfg
Attached Files
File Type: sp Get Plugin or Get Source (onroundstart.sp - 335 views - 568 Bytes)
__________________
API is offline
Send a message via AIM to API
dotexe
Senior Member
Join Date: Aug 2013
Old 11-12-2014 , 22:35   Re: Run a command on round start
Reply With Quote #3

Quote:
Originally Posted by pimpinjuice View Post
Sure, why not. Feel free to modify, but by default it executes on_round_start.cfg
Thanks a lot. What is the format of the config file? How do I separate commands, etc. Thanks again.
dotexe is offline
API
Veteran Member
Join Date: May 2006
Old 11-13-2014 , 11:43   Re: Run a command on round start
Reply With Quote #4

It's just a standard config, just like server.cfg or autoexec.cfg

Simply put a command per line, like so:
Code:
sv_gravity 100
bot_kick
__________________
API is offline
Send a message via AIM to API
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-13-2014 , 12:10   Re: Run a command on round start
Reply With Quote #5

Might want to also HookEventEx on teamplay_round_start so it work on HL2:DM in Team mode and in TF2.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-13-2014 at 12:10.
Powerlord is offline
dotexe
Senior Member
Join Date: Aug 2013
Old 11-13-2014 , 20:06   Re: Run a command on round start
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
Might want to also HookEventEx on teamplay_round_start so it work on HL2M in Team mode and in TF2.
I hope I'm not stepping out of line by asking this but could you kindly do this or provide instructions as to how I can do this?
dotexe is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 11-15-2014 , 10:14   Re: Run a command on round start
Reply With Quote #7

this has added the teamplay_round_start event
Attached Files
File Type: sp Get Plugin or Get Source (onroundstart.sp - 338 views - 643 Bytes)
xerox8521 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:54.


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