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

Command to Generically go to Next Map in Cycle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-26-2005 , 10:21   Command to Generically go to Next Map in Cycle
Reply With Quote #1

Is there a plugin (or native command that I'm unaware of) that will allow you to start the next map in the map cycle via a generic command?

I was thinking something along the lines of amx_startnextmap which would optionally display a message to players indicating the map was going to change to the next one in the cycle (also listing the name of the next map) before switching to the next map.
Brad is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-26-2005 , 10:27  
Reply With Quote #2

eehmm


say : nextmap?
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-26-2005 , 11:36  
Reply With Quote #3

Quote:
Originally Posted by proach
say : nextmap?
Nice try Proach...

I know how to display what the next map will be. What I want to do, as an admin, is force the server to start the next map in the cycle without having to know what the next map is.

Now that I'm thinking about this a little more (thank you for that Proach) I think I could just set mp_maptime to 0 which would end the current map and load the new map. Loading the new map would automatically reset the mp_maptime to whatever it should be for that map. In theory.
Brad is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 05-26-2005 , 11:42  
Reply With Quote #4

huh i don't get it
do you want for every map another game time
__________________
- Bye bye!
nightscreem is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-26-2005 , 11:53  
Reply With Quote #5

sorry I missunderstood your question .. lol

well yeah binding a key to mp_maptime 0 will do the trick (is maptime a cvar? :S )

so bind <key> mp_maptime 0 and you;re all set
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-26-2005 , 16:06  
Reply With Quote #6

Quote:
Originally Posted by nightscreem
huh i don't get it
do you want for every map another game time
No. What I wanted was to be able to run a command, let's call it amx_gonextmap (as in go to the next map), that would stop the current map and move on to the next map in the cycle.

My response to Proach was me thinking through a way to do it without a plugin.

Quote:
Originally Posted by proach
well yeah binding a key to mp_maptime 0 will do the trick (is maptime a cvar? :S )
I knew I should have looked before writing that... Let's just pretend I said, "mp_timelimit".

I might look into writing a plugin anyway. One that will tell the peeps on the server that the current map is ending, what the next map will be, and when the map change is going to occur (configurable amount of time, defaulting to ~5 seconds).
Brad is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-26-2005 , 16:08  
Reply With Quote #7

yah I thought of mp_timelimit as well
but then.. it would still have to be mp_timelimit 1 so youll have to wait a minute..
cause timelimit 0 means no timelimit :S

or can mp_timelimit 0.5 or so used as well..?
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-26-2005 , 21:56  
Reply With Quote #8

Not sure. I'll have to play with things and see what can be done.

Before school let out around here for the summer, I was able to do a bit of work on my server without anyone being around to get on it. Now, however, that school is out... I might find it empty in the morning but then if I'm on it for more than 10 minutes, on comes a bunch of peeps. I don't like messing with the server when people are there. I've already crashed it more than once with a full server. Oops.
Brad is offline
CrazymFer
Junior Member
Join Date: Aug 2004
Old 05-27-2005 , 00:50  
Reply With Quote #9

If you put it to bind <key> "mp_timelimit .01" it will set the current map time to .6 seconds... BUT, the issue with that, is the next map will have the same map time limit... So if you want to go without a plugin, you'll need to put the map time to something higher, but then with that you risk the amx auto votemap starting up...
CrazymFer is offline
Send a message via AIM to CrazymFer
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-27-2005 , 04:41  
Reply With Quote #10

no..
not if you just put mp_timelimt 20 in your amxx.cfg
it will change back
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
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:01.


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