Raised This Month: $ Target: $400
 0% 

get nextmap?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-07-2007 , 12:50   Re: get nextmap?
Reply With Quote #4

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
 



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