Half-Life и Adrenaline Gamer форум

Всё об игре в Халф-Лайф и АГ
Текущее время: 28 мар 2024, 17:12

Часовой пояс: UTC + 5 часов [ Летнее время ]




Начать новую тему Ответить на тему  [ Сообщений: 19 ]  На страницу 1, 2  След.
Автор Сообщение
 Заголовок сообщения: Mapchooser4 working for half-life
СообщениеДобавлено: 12 сен 2011, 18:54 
Не в сети
Зарегистрирован:
07 сен 2011, 12:20
Последнее посещение:
31 июл 2015, 18:31
Сообщения: 74
This plugin is the same like the one on alliedmoders for counter-strike. A member of that forum modified it for me so now it works for half-life.

Author: AMX Dev & KWo, modified for half-life by fysiks
Version: 3.41hl

Info:

Код:
What are the biggest differences between mapchooser4 and the default mapchooser?
1. It supports extending maps on servers playing in maxround / winlimit systems.
2. It "remembers" the history of the last 0-15 played maps ("amx_map_history" cvar) to prevent get them to the map vote menu again.
3. You can define by a cvar if You want to use mapcycle.txt, maps.ini or maps folder for the list of maps they wiil be taken into maps vote menu.
4. It lets You rock the vote for the next map.

Currently this plugin version posted here is based on code of AMX 2006.3 written/modified by KRoT@L with some my modifications they came from users requests.
KRoT@L used some my ideas I've included in mapchooser4 but he also added few others - for example from Deagle's Map's map management plugin.
So all credits of the plugin posted by me here belongs to KRoT@L and to the Deagle.

If amx_mapchooser_type is set to 1, players can nominate maps for the vote.
They have to type "nominate mapname" or "vote mapname" or "mapname" in the chat.
They can type "nominations" in the chat to see the list of nominated maps.
They can type "amx_listmaps" in console to see the maps that can be nominated if amx_nominfromfile is set to 1.

The plugin uses cvars:

amx_mapchooser_type <0/1/2> (default is 0):
0: random maps from amx_mapchooser_mapsfile/mapcycle/maps folder
1: nominations
2: the nextmap is a random map chosen from amx_mapchooser_mapsloc (no vote)
amx_mapchooser_mapsloc <0|1|2> (default is 0):
0: amx_mapchooser_mapsfile
1: mapcycle
2: maps folder
amx_mapchooser_mapsfile - File used when amx_mapchooser_mapsloc is set to 0 (default filename is "maps.ini").
The file must be in amxmodx/configs/ folder.
amx_mapchooser_mapsfile_s - File used when amx_mapchooser_mapsloc is set to 0
and there is less than 10 players on the server (default filename is "maps_small.ini").
The file must be in amxmodx/configs/ folder. If it's not existing there, the regular amx_mapchooser_mapsfile
will be used also for smaller than 10 amount of players on the server.
amx_nominfromfile <0/1> (default is 0):
0: players can nominate all the maps from the map folder
1: players can only nominate maps from amx_mapchooser_mapsfile/mapcycle
amx_maxnominperplayer <num> - how many maps each player can nominate (default is 1).
amx_map_history <num> - how many last played maps shouldn't go to the maps vote menu (default is 5).
amx_extendmap_max <time in mins.> - max. time for overall extending the map if mp_timelimit is used (default is 90).
amx_extendmap_step <time in mins.> - with what time the map will be extended if mp_timelimit is used (default is 15).
amx_ext_round_max <number of possible polls for extend> - how many times the map can be extended if mp_maxrounds is used (default is 3).
amx_ext_round_step <number of rounds> - with what rounds number the map will be extended if mp_maxrounds is used (default is 3).
amx_ext_win_max <number of possible polls for extend> - how many times the map can be extended if mp_winlimit is used (default is 3).
amx_ext_win_step <number of rounds> - with what rounds number the map will be extended if mp_winlimit is used (default is 3).

amx_rtv <0/1> - enables/disables rockthevote option (deafult is 1).
amx_rtv_percent <0.0-1.0> - rockthevote ratio (%/100 human-players they need to say rockthevote to start voting for the next map (default is 0.6).
amx_rtv_min_time <time in mins.> - minimum time (in minutes) required to play the map before players can use rockthevote feature (default is 10).
amx_rtv_map_time <time in seconds> - time to change to the new map after successful rtv and then successful voting for the new map, the map
(instead waiting until round end). Default is 10 (increasing it to 300 will effect in waiting to the round end to change the map).

These AMX X cvars - normally registered by admin.sma plugin but also checked by mapchooser4:
amx_vote_time <time in seconds> - the length of time the vote is active. Default is 10.
amx_vote_delay <time in seconds> - the time next vote can happen since last vote happened. Default is 60.
amx_last_voting <time in seconds> - the time last vote happend (internal use).
amx_show_activity [0|1|2]:
0 - doesn't show what the admin is doing (starting any vote i.e.),
1 - shows to everybody the activity of admin, but without showing his name,
2 - shows the activity of the admin with his name.
Higher than 2 values of this cvar aren't supported by mapchooser4 plugin.

NOTE: Nextmap plugin is required for proper working of this plugin (with amx_nextmap cvar).


Вложения:
Скачать плагин или Скачать исходник [mapchooser4_hl.sma - 56.35 КБ]
Скачиваний: 848
mapchooser4_txt.zip [8.77 КБ]
Скачиваний: 476
Комментарий к файлу: 4.1
Скачать плагин или Скачать исходник [mapchooser4.1_hl.sma - 47.88 КБ]
Скачиваний: 556

_________________
Изображение
Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 04 янв 2017, 23:33 
Не в сети
Зарегистрирован:
24 дек 2011, 07:44
Последнее посещение:
17 апр 2018, 02:01
Сообщения: 178
часто с выбором extending выходит такая фигня:
8 игроков:
Цитата:
L 01/04/2017 - 20:25:48: [mapchooser4_hl.amxx] Vote: Voting for the nextmap started
L 01/04/2017 - 20:25:49: [mapchooser4_hl.amxx] NONAME chose bounce
L 01/04/2017 - 20:25:51: [mapchooser4_hl.amxx] Bl@cK chose map extending
L 01/04/2017 - 20:25:53: [mapchooser4_hl.amxx] Vote: Voting for the nextmap finished. The nextmap will be bounce

со стандартным мапчузером было примерно то же самое:
Цитата:
[15:34:01] It's time to choose the nextmap...
4 users
[15:34:06] Bl@cK chose map extending
Player N506 killed GECELERiN YARGICI with rpg_rocket
[15:34:16] Choosing finished. The nextmap will be crossfire

этот иногда отправляет на карту после первого голоса после rtv.
Короче, хрень какая-то происходит/ м.б. где-нибудь подправить надо?
p.s. rtv + nominations rulz! :good:

_________________
hl.loess.ru Изображение


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 19:30 
Не в сети
Аватара пользователя
Зарегистрирован:
30 авг 2011, 22:16
Последнее посещение:
22 сен 2023, 18:31
Сообщения: 1384
Откуда: България
Как увеличить время, которое будет отображаться на экране меню голосования?
pv_amx_vote_time = register_cvar("amx_vote_time","5")
pv_amx_vote_delay = register_cvar("amx_vote_delay","20")
pv_amx_rtv = register_cvar("amx_rtv","1")
pv_amx_rtv_percent = register_cvar("amx_rtv_percent","0.6")
pv_amx_rtv_min_time = register_cvar("amx_rtv_min_time","5")
pv_amx_rtv_map_time = register_cvar("amx_rtv_map_time","10")

Я увеличил его до 20, но он стоит 10 секунд.

pv_amx_vote_delay = register_cvar("amx_vote_delay","20")

_________________
Изображение
Изображение
http://smurfa.bulgarianforum.net/


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 20:31 
Не в сети
Site Admin
Зарегистрирован:
01 июн 2010, 01:27
Последнее посещение:
26 мар 2024, 21:42
Сообщения: 6864
amx_vote_time


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 22:01 
Не в сети
Аватара пользователя
Зарегистрирован:
30 авг 2011, 22:16
Последнее посещение:
22 сен 2023, 18:31
Сообщения: 1384
Откуда: България
Это для, что? amx_vote_delay","20" Я не могу понять это.

_________________
Изображение
Изображение
http://smurfa.bulgarianforum.net/


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 23:04 
Не в сети
Site Admin
Зарегистрирован:
01 июн 2010, 01:27
Последнее посещение:
26 мар 2024, 21:42
Сообщения: 6864
Через сколько можно будет ещё раз голосование запустить.


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 23:27 
Не в сети
Аватара пользователя
Зарегистрирован:
30 авг 2011, 22:16
Последнее посещение:
22 сен 2023, 18:31
Сообщения: 1384
Откуда: България
После того, как много времени может написать снова RTV

_________________
Изображение
Изображение
http://smurfa.bulgarianforum.net/


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 08 авг 2017, 23:52 
Не в сети
Site Admin
Зарегистрирован:
01 июн 2010, 01:27
Последнее посещение:
26 мар 2024, 21:42
Сообщения: 6864
Если я правильно понимаю, у RTV нет лимита на частоту использования, т.к. оно вообще только 1 раз за карту возможно.
Есть лимит через сколько от начала карты можно запускать RTV - amx_rtv_min_time.


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 09 авг 2017, 15:10 
Не в сети
Аватара пользователя
Зарегистрирован:
30 авг 2011, 22:16
Последнее посещение:
22 сен 2023, 18:31
Сообщения: 1384
Откуда: България
Lev писал(а):
amx_vote_time

Это не сработало.Меню снова стоять 10 секунд.

L 08/09/2017 - 12:04:39: [mapchooser4_hl.amxx] Vote: Voting for the nextmap started
L 08/09/2017 - 12:04:42: [mapchooser4_hl.amxx] (1)Player izbra bootbox3
L 08/09/2017 - 12:04:49: [mapchooser4_hl.amxx] Vote: Voting for the nextmap finished. The nextmap will be bootbox3

Код:
pv_amx_vote_time = register_cvar("amx_vote_time","20")
    pv_amx_vote_delay = register_cvar("amx_vote_delay","30")
    pv_amx_rtv = register_cvar("amx_rtv","1")
    pv_amx_rtv_percent = register_cvar("amx_rtv_percent","0.6")
    pv_amx_rtv_min_time = register_cvar("amx_rtv_min_time","5")
    pv_amx_rtv_map_time = register_cvar("amx_rtv_map_time","10")


Что-то я не могу связать вещи. Почему это кварта его время в минутах?
amx_vote_time <time in mins.>

Если вы спросите 10 означает, что вы должны стоять 10 минут в меню?

_________________
Изображение
Изображение
http://smurfa.bulgarianforum.net/


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Mapchooser4 working for half-life
СообщениеДобавлено: 09 авг 2017, 15:32 
Не в сети
Site Admin
Зарегистрирован:
01 июн 2010, 01:27
Последнее посещение:
26 мар 2024, 21:42
Сообщения: 6864
Ты убедись что у тебя на сервере квар поменялся. А то ты в плагине меняешь, а я ведь не знаю как ты выкладываешь на сервер, с перезапуском или просто со сменой карты.


Вернуться к началу
 Профиль 
  
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 19 ]  На страницу 1, 2  След.

Часовой пояс: UTC + 5 часов [ Летнее время ]


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Создано на основе phpBB® Forum Software © phpBB Group
Русская поддержка phpBB