Raised This Month: $ Target: $400
 0% 

how can I get server to execute admin commands every round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WhightKnight
Senior Member
Join Date: Jun 2008
Old 03-05-2009 , 23:55   how can I get server to execute admin commands every round
Reply With Quote #1

Instead of troubling for a new plugin I was wondering if there was a way I could get the server to automatically execute admin commands:
-amx_weapon @all 17 (every round) - for pistol only server (and i'd get a plugin to disable buy screen)
-amx_exec @all "say maxdep" - for zombie plague server, at end of each map

I am just experimenting on 1 server we have and I want to try a pistol server out. But before I can do that I need clarification on my question posted.

Thanks,
WK
__________________
WhightKnight is offline
Speed!
BANNED
Join Date: Jan 2009
Old 03-06-2009 , 00:22   Re: how can I get server to execute admin commands every round
Reply With Quote #2

just use server_cmd
eg:
server_cmd("amx_weapon @all 17")
Speed! is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 03-06-2009 , 00:39   Re: how can I get server to execute admin commands every round
Reply With Quote #3

Quote:
Originally Posted by Speed! View Post
just use server_cmd
eg:
server_cmd("amx_weapon @all 17")
would that work every round or just on mapchange? if you put that in you server.cfg?
__________________
[B]
{PHILMAGROIN} is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-06-2009 , 01:56   Re: how can I get server to execute admin commands every round
Reply With Quote #4

he wants a command... not something for a script.

WhiteKnight, I believe there is a plugin that already does this.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 03-06-2009 , 13:27   Re: how can I get server to execute admin commands every round
Reply With Quote #5

Quote:
Originally Posted by Emp` View Post
he wants a command... not something for a script.

WhiteKnight, I believe there is a plugin that already does this.
I think he wants a command that he can put in like a .cfg or .ini file that would execute every round. but i dont believe that is possible.
__________________
[B]
{PHILMAGROIN} is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-06-2009 , 17:01   Re: how can I get server to execute admin commands every round
Reply With Quote #6

Quote:
Originally Posted by {PHILMAGROIN} View Post
I think he wants a command that he can put in like a .cfg or .ini file that would execute every round. but i dont believe that is possible.
With plugin that's ofc possible. Just create a file like round_start.ini and in a plugin read all the lines and send them with server_cmd every round start. For already existing file there should be something to regonize it like: "round_start sv_restart 1" and what a nice effect that specific line would have.
SnoW is offline
Send a message via MSN to SnoW
WhightKnight
Senior Member
Join Date: Jun 2008
Old 03-06-2009 , 17:01   Re: how can I get server to execute admin commands every round
Reply With Quote #7

Yea, I need 2 things.
1. a command that executes every round
2. a command that executes before map change
__________________
WhightKnight is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-06-2009 , 20:27   Re: how can I get server to execute admin commands every round
Reply With Quote #8

I think you might be able to do it with this. But I'm not sure.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 21:18.


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