Raised This Month: $ Target: $400
 0% 

get nextmap?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-07-2007 , 12:25   get nextmap?
Reply With Quote #1

How to get nextmap and change to it?
[X]-RayCat is offline
Old 06-07-2007, 12:40
Lee
This message has been deleted by Lee.
Old 06-07-2007, 12:43
regalis
This message has been deleted by regalis. Reason: don't work..0o
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-07-2007 , 12:50   Re: get nextmap?
Reply With Quote #2

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) }

Last edited by Lee; 06-07-2007 at 12:55.
Lee is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-08-2007 , 09:50   Re: get nextmap?
Reply With Quote #3

Thanx Lee, i remember it was something like that, but needed to be sure.
[X]-RayCat is offline
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 10:29.


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