[CSS] Menu with map elimination
Hey,
How can I do menu with elimination item?? When you click on cs_assault than be kicked from list(menu). and I also need this for two players - for choose map at match, so when PLAYER_A click on map de_XXX that he don't want this map is kicked from list and menu is given to PLAYER_B without map de_XXX and he also click on some map... and the last map will WIN. This code I need for 1vs1. Can someone help? Code:
public Action Choose_map_all() |
Re: [CSS] Menu with map elimination
I made a version from your script to fit your needs
PHP Code:
|
Re: [CSS] Menu with map elimination
I highly recommend reading the map list from a file instead. There's a dedicated command for this: ReadMapList, which will read them into an ArrayList
|
Re: [CSS] Menu with map elimination
Thanks a lot!
It's working good but... ;pp I have one question. How can I detect last map for this "ClientCommand(param1, "sm_setmap %s", sItem);" ? This is map eliminations so last map is map that players will play. |
Re: [CSS] Menu with map elimination
I forgot to mention, you can just call SetNextMap instead of using a ClientCommand to do it.
As for reading the previous map, you can't. However, you can read the current map using GetCurrentMap... and as I recall, you can use this in an OnMapEnd callback, which would pretty much be the same thing as reading the previous map. |
Re: [CSS] Menu with map elimination
I will not use mapchooser - I want to remove standard plugins. I am still beginner at coding but I think that is some trick to read last map on menu. Not last played map :P
|
Re: [CSS] Menu with map elimination
I've accidentally placed cs_compound on the list twice, make sure to remove one of those copys and change MAXMAPS from 30 to 29.
PHP Code:
|
Re: [CSS] Menu with map elimination
Thank you so much! Good work man :)
I'm coding automatic matches for 1vs1, I want to create leagues for CS:S for free and with free servers :). That code from you is very expensive for me. THANKS!!! :* @close |
Re: [CSS] Menu with map elimination
Quote:
Having said that, I've spent a lot of time working on Mapchooser and its variants, so I have a pretty good idea how to do map votes. As for reading the last map on the list, just get the number of items in the vote, then get the menu item with one less than that number. |
All times are GMT -4. The time now is 19:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.