Raised This Month: $ Target: $400
 0% 

AlMod's Votemap (Chat)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
AlMod
Member
Join Date: Nov 2006
Old 01-06-2008 , 02:48   AlMod's Votemap (Chat)
Reply With Quote #1

AlMod's Votemap (Chat) [1.2]

English:
This plugin allows players use CS style votemap in All HL1 Mods

Server Cvars:
  • sv_votemap 1 - Set the plugin on/off
  • vm_ratio 0.6 - voteratio
Client Commands (Chat):
  • /votemap <map name> - vote for map 'map name'
  • /mapsX - show maps list, X is page. If X not typed showing 1st page
Changelog:
1.0 - Public Release
1.1 - Some bugs fixed, plugin now works with HL
1.2 - Fixed sizeof() function with strings + Need to Change votes added

Bugs found:
Incorrect maplist in Half-Life [fixed]

To Do:
Work under all mods [CS, HL]
Map reading from <mod dir>\maps not from addons\<amxmodx dir>\config\maplist.ini
Make Percentage in maps list and list with player votes (who is voted for what or something like this) [Done]
Make vote with indexs, like /votemap #<map number in maplist>

Russian (Русский):
Плагин позволяет использовать алгоритм консольного CS votemap'а в чате в любом моде движка HL

Переменные:
  • sv_votemap 1 - Плагин вкл/выкл
  • vm_ratio 0.6 - процент при достижении которого будет сменена карта
Команды игроков (Чат):
  • /votemap <имя карты> - отдать свой голос за 'имя карты'
  • /mapsX - Показывает список карт, на странице X. Если X не задано, открывается первая страница
Лог изменений:
1.0 - Первый релиз
1.1 - Некоторые баги профиксены, плагин стал работать с HL
1.2 - Исправлена неточность с sizeof() + "Нужно голосов чтобы сменить" в списке карт

Найденные баги:
Некорректное отображение списка карт в HL [Исправлено]

Надо сделать:
Чтобы работало под всеми модами [Сейчас: CS, HL]
Чтение карт из <mod dir>\maps а не из addons\<amxmodx dir>\config\maplist.ini
Сделать в маплисте вывод количества голосов для смены карты [Сделал]
Возможность отдавать голос по индексу, типа /votemap #<номер карты в маплисте>

---

P.S. If same plugin exist don't kick me, I used search but found nothing same plugins
Attached Files
File Type: sma Get Plugin or Get Source (almod_mapv.sma - 4822 views - 6.6 KB)

Last edited by AlMod; 01-07-2008 at 09:26.
AlMod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 01-06-2008 , 04:34   Re: AlMod's Votemap (Chat)
Reply With Quote #2

Looks nice, but one thing, when you get a value into a string you must set the string lengt - 1, so will be sizeof(mapname) - 1 , replace all your sizeof(...) in sizeof(...) - 1.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
AlMod
Member
Join Date: Nov 2006
Old 01-06-2008 , 06:46   Re: AlMod's Votemap (Chat)
Reply With Quote #3

Updated to 1.2, sizeof fixed

Last edited by AlMod; 01-06-2008 at 09:12.
AlMod is offline
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 01-06-2008 , 18:01   Re: AlMod's Votemap (Chat)
Reply With Quote #4

Very nice. Cookies and Karma for you
__________________
chris is offline
Send a message via AIM to chris
Boogie B.
New Member
Join Date: Dec 2007
Old 01-07-2008 , 03:54   Re: AlMod's Votemap (Chat)
Reply With Quote #5

Извините что только по русски, а что если сделать голосование как в clanmod, набираешь в чате /votemap и выходит список карт, которые ты можешь сразу же выбрать, так как прописывать, например /votemap de_dust2 не очень удобна...
Boogie B. is offline
AlMod
Member
Join Date: Nov 2006
Old 01-07-2008 , 09:32   Re: AlMod's Votemap (Chat)
Reply With Quote #6

My poorly translate :
Quote:
Originally Posted by Boogie B. View Post
Can you do votemap like in clanmod typing /votemap in chat and maplist's comin' up where u can select map immidietly. Because /votemap de_dust2 is not comfortable
EN:
Nope, I can't do this. Look for To Do List, in 1.3 will be voting by mapindex

RU:
Нет я не буду этого делать. Загляни в "Список дел", в версии 1.3 можно будет голосовать по индексу карты
AlMod is offline
sluggo
Member
Join Date: May 2006
Old 03-30-2008 , 08:29   Re: AlMod's Votemap (Chat)
Reply With Quote #7

Is this 'plugin' updated?
Please update it to work as close to the clanmod-version as possible. That was the best mapvote-system ever!

Nice job so far, by the way
sluggo is offline
tnt_pde
New Member
Join Date: Apr 2008
Old 04-02-2008 , 07:11   Re: AlMod's Votemap (Chat)
Reply With Quote #8

hey there, i have some problems with my pure HL.

how many players have to be online for the vote to work? Any way to change the numaer? I have only tested it alone on my server and it didn't change the map when I voted (it shows the message on the screen that i voted)

2) it doesn't show percentage in maps list and list with player votes

thank you

Last edited by tnt_pde; 04-02-2008 at 08:14.
tnt_pde is offline
r013x
Member
Join Date: Feb 2008
Location: Russian Federation
Old 04-06-2008 , 11:38   Re: AlMod's Votemap (Chat)
Reply With Quote #9

Quote:
Originally Posted by AlMod View Post
RU:
Нет я не буду этого делать. Загляни в "Список дел", в версии 1.3 можно будет голосовать по индексу карты
Кстати, Boogie B. прав. Набирать /mapsx, смотреть номер, потом писать /votemap #№. Удобнее вывести меню при say /votemap и выбрать карту из меню. Ах да IMHO.

By the way, Boogie B. of the rights. To type /mapsx, to look number, then to write /votemap #. It is more convenient to make the menu at say /votemap and to choose a card from the menu. Oh yes IMHO.
__________________
[IMG]http://img516.**************/img516/7687/cccpfb1.png[/IMG]

Last edited by r013x; 04-06-2008 at 11:42.
r013x is offline
Old 04-06-2008, 11:41
r013x
This message has been deleted by r013x.
AlMod
Member
Join Date: Nov 2006
Old 04-13-2008 , 13:33   Re: AlMod's Votemap (Chat)
Reply With Quote #10

Oof, I've no time now, i've check it out later (maybe in 1 week ) all you need is to wait a little time
AlMod 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 01:02.


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