AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get nextmap? (https://forums.alliedmods.net/showthread.php?t=56140)

[X]-RayCat 06-07-2007 12:25

get nextmap?
 
How to get nextmap and change to it?

Lee 06-07-2007 12:50

Re: get nextmap?
 
get_cvar_string doesn't work like that.

This is how I've done it in the past. The message displays the scoreboard but is obviously not required. amx_nextmap isn't guaranteed to exist if you were planning to release your plugin.

Code:
... message_begin(MSG_ALL, SVC_INTERMISSION) message_end() set_task(2.0, "change_map") ... public change_map() {     new nextmap[32]     get_cvar_string("amx_nextmap", nextmap, 31)     server_cmd("changelevel %s", nextmap) }

[X]-RayCat 06-08-2007 09:50

Re: get nextmap?
 
Thanx Lee, i remember it was something like that, but needed to be sure. :)


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

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