Raised This Month: $ Target: $400
 0% 

Help with nextmap scripting!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-04-2008 , 20:56   Re: Help with nextmap scripting!
Reply With Quote #2

That was the first problem I tried to tackle two years ago, and we both screwed it up pretty similarly. Note that get_timeleft() returns seconds and not minutes.

Remove/comment sayNextMap() from nextmap.sma and move the relevant register_clcmd() call from plugin_init() in nextmap.sma to the same function in mapchooser.sma. Then add this version of sayNextMap() to mapchooser.sma.

Code:
public sayNextMap() {     if(g_selected)     {         new name[32]         get_cvar_string("amx_nextmap", name, 31);         client_print(0, print_chat, "%L %s", LANG_PLAYER, "NEXT_MAP", name)     }     else     {         client_print(0, print_chat, "%L", LANG_PLAYER, "NEXT_MAP_MSG")     } }

I assume you've added NEXT_MAP_MSG to the language files.
__________________
No support via PM.

Last edited by Lee; 08-05-2008 at 07:56.
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 05:34.


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