Raised This Month: $ Target: $400
 0% 

Set an additional server cvar in mapchooser.sma


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sparky911
Junior Member
Join Date: Mar 2005
Location: Saskatchewan, Canada
Old 03-12-2005 , 13:43  
Reply With Quote #6

I don't think it is the mod overiding it because the modifications I made in nextmap.sma work. When the map loads it sets agnextmap to amx_nextmap. I just can't seem to get mapchooser.sma to do it.

This is what I have tried so far...

Code:
public checkVotes() {   new b = 0   for (new a = 0; a < g_mapVoteNum; ++a)     if (g_voteCount[b] < g_voteCount[a])        b = a   if ( g_voteCount[SELECTMAPS] > g_voteCount[b] ) {     new mapname[32]     get_mapname(mapname,31)     new Float:steptime = get_cvar_float("amx_extendmap_step")     set_cvar_float("mp_timelimit", get_cvar_float("mp_timelimit") + steptime )     client_print(0,print_chat,"%L", LANG_PLAYER, "CHO_FIN_EXT", steptime )     log_amx("Vote: Voting for the nextmap finished. Map %s will be extended to next %.0f minutes",       mapname , steptime )     return   }   if ( g_voteCount[b] && g_voteCount[SELECTMAPS+1] <= g_voteCount[b] )       set_cvar_string("amx_nextmap", g_mapName[g_nextName[b]] )       set_cvar_string("agnextmap", g_mapName[g_nextName[b]] )   new smap[32]   get_cvar_string("amx_nextmap",smap,31)   set_cvar_string("agnextmap",smap,31)   client_print(0,print_chat,"%L", LANG_PLAYER, "CHO_FIN_NEXT", smap )   log_amx("Vote: Voting for the nextmap finished. The nextmap will be %s", smap) }
__________________
Sparky911 is offline
Send a message via ICQ to Sparky911 Send a message via MSN to Sparky911
 



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 14:01.


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