Raised This Month: $ Target: $400
 0% 

changing map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-21-2007 , 02:25   changing map
Reply With Quote #1

I know this might be a bit of a newb question but what is the easiest way to goto the next map in the normal mapcycle without having to read the file and parse it yourself? It would be a big help to do it this way instead of making a certain mapcycle for my plugin. Thanks in advance.
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Drak
Veteran Member
Join Date: Jul 2005
Old 09-23-2007 , 00:10   Re: changing map
Reply With Quote #2

Would a 'hackish' way be, to set the time left to zero. So it goes to the next map?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-26-2007 , 18:28   Re: changing map
Reply With Quote #3

*bump*
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-26-2007 , 19:51   Re: changing map
Reply With Quote #4

It's defined in the CVAR amx_nextmap.

Code:
public next_map() {    new nextmap[32];    get_cvar_string( "amx_nextmap", nextmap, 31 );    if( nextmap[0] )       server_cmd( "changelevel %s", nextmap ); }
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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:10.


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