Raised This Month: $51 Target: $400
 12% 

Custom Nextmap


Post New Thread Reply   
 
Thread Tools Display Modes
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 01-21-2012 , 13:44   Re: Custom Nextmap
Reply With Quote #351

ok thx but i see this:
Code:
    else if    (get_playersnum() < 15)
    {
        get_configsdir(configfile,199)
        format(configfile,199,"%s/custom_nextmaps_small.ini",configfile)
wtf? get_playersnum should be 13 or not?

Last edited by RTG; 01-21-2012 at 13:45.
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-21-2012 , 18:27   Re: Custom Nextmap
Reply With Quote #352

"< 15" means 14 or less.
__________________
fysiks is offline
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 01-22-2012 , 12:58   Re: Custom Nextmap
Reply With Quote #353

yes, but he said less then 13 players, so it could be <13

ah, he edited the post so let it be
Last edited by shaliwahan; Today at 02:55 AM.


Last edited by RTG; 01-22-2012 at 12:59.
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
shaliwahan
Member
Join Date: Aug 2011
Old 01-23-2012 , 03:36   Re: Custom Nextmap
Reply With Quote #354

Quote:
Originally Posted by RTG View Post
ah, he edited the post so let it be

No time to edit he sma so edited the post!
shaliwahan is offline
SparkyFromiFun
Member
Join Date: Jan 2012
Old 01-23-2012 , 18:02   Re: Custom Nextmap
Reply With Quote #355

i'm using this on my war3ft server, but can some of modders make plugin with colored chat, in say chat /red[Vote] Sparky Choosen a de_dust2_ifun, & other messages, thanks if somebody helps.
__________________
My New moded Warcraft3 servers:

SparkyFromiFun is offline
shaliwahan
Member
Join Date: Aug 2011
Old 01-24-2012 , 22:04   Re: Custom Nextmap
Reply With Quote #356

Quote:
Originally Posted by SparkyFromiFun View Post
But can some of modders make plugin with colored chat
You can use the information from here and do it yourself...
http://forums.alliedmods.net/showpos...2&postcount=90
shaliwahan is offline
shaliwahan
Member
Join Date: Aug 2011
Old 01-26-2012 , 13:37   Re: Custom Nextmap
Reply With Quote #357

Update v1.4g

Modified the code so that now the map will be changed after round end when rtv or amx_nextmap_vote it triggered. End map vote will automatically change map 1 seconds before the time limit.

Note: Make sure you add in your amxx.cfg your mp_timelimit value. So that it be revert back to that value after map change.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Custom_Nextmap.sma - 538 views - 15.3 KB)

Last edited by shaliwahan; 01-27-2012 at 07:45. Reason: Fixed gungame round start map change.
shaliwahan is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 03-27-2012 , 09:22   Re: Custom Nextmap
Reply With Quote #358

I made some fixes, changes and improvements of your version and I would like to share my work.

My comments about why plugin needs some of them:
- to correctly handle win- and/or maxrounds-based limits with or without timelimit. Previous version in that case shows 'extend map' option when it shouldn't. But it is more important that both plugin's map changing tasks (1s before timelimit and at the start of new round) cannot be completed in that case and we get undesired map if there are no running AMXX nextmap base plugin.
- The 2nd reason to have AMXX nextmap base plugin is noticeable delay with final score table. I believe it's very usefull thing. Unfortunately I couldn't find a good way to get the same delay before 'map change at the end of round' even I've tried so hard. The 3d reason is to get info using 'ff' and 'current' map chat commands. If we in any case need AMXX nextmap base plugin running there is no need to duplicate functionality.
- Option 'show also current map' is needed for single-type-of-map servers (for example, with a set of 'dust' maps such as de_dust2, de_dust2_2x2, cs_pf_dust, de_dust2_2x2_b_new, etc.) if you want primary maps to be always shown (in my example it's de_dust2 & de_dust2_2x2).

Quote:
Changelog:
v1.4h (By Safety1st)
- new: added cvar (map_max_players_2_use_small_maps, default 15) for determination which ini plugin should use based on current players quantity: 'normal' or 'small'
- new: added possibility to show also current map in menu (defined by "map_currentmap_show" cvar, off by default)
- fix: in case of no timelimit for map option 'Extend map' isn't showed
- fix: after choosing nextmap players get correct message to their rtv
- change: timelimit-based map changing is handled by AMXX nextmap base plugin as it is for AMXX mapchooser base one
- change: user-initiated map changing occurs at the end of round with a short delay
- ! new: increase timelimit if it might elapse earlier than the current round
- new: added multilingual support (incomplete)
- a few cosmetic changes
Attention
This plugin (my version AND the previous) requires nextmap.amxx (because nextmap.amxx exactly changes map to defined by amx_nextmap cvar in case of limit-based map change). Make sure you add it before nextmap.amxx in plugins.ini in order to you don't get incorrect second message for 'nextmap' chat command.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Custom_Nextmap.sma - 472 views - 17.7 KB)
File Type: zip GHW_Custom_Nextmap_allfiles.zip (7.0 KB, 116 views)

Last edited by isotonic; 03-27-2012 at 09:38.
isotonic is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 03-28-2012 , 00:58   Re: Custom Nextmap
Reply With Quote #359

Sorry, I've corrected 1 typo in dictionary and added information message about map change after the end of round.

Translations are highly welcomed! ;)
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Custom_Nextmap.sma - 467 views - 17.8 KB)
File Type: txt customnextmap.txt (1.0 KB, 146 views)

Last edited by isotonic; 03-28-2012 at 01:00.
isotonic is offline
0920357689
Senior Member
Join Date: Apr 2008
Old 03-28-2012 , 14:14   Re: Custom Nextmap
Reply With Quote #360

someone can remove the [x][/x] Function?
0920357689 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 11:09.


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