AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   changing map (https://forums.alliedmods.net/showthread.php?t=61109)

johnjg75 09-21-2007 02:25

changing map
 
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.

Drak 09-23-2007 00:10

Re: changing map
 
Would a 'hackish' way be, to set the time left to zero. So it goes to the next map?

johnjg75 09-26-2007 18:28

Re: changing map
 
*bump* :(

Wilson [29th ID] 09-26-2007 19:51

Re: changing map
 
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 ); }


All times are GMT -4. The time now is 16:10.

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