Правила форума Гаранты форума
Размещение рекламы AMX-X компилятор

Здравствуйте, гость Вход | Регистрация

Наши новости:

14-дек
24-апр
10-апр
11-апр

> Правила форума

Этот раздел, как вы могли заметить по названию, предназначен для решения вопросов по поводу уже существующих модов и плагинов.
Пожалуйста, если у вас проблема с написанием плагина, не путайте этот раздел с разделом по скриптингу.
Для поиска плагинов и модов существует соответствующий раздел.

Название темы должно соответствовать содержанию. Темы с названием типа "Помогите", "Вопрос", "парни подскажите..." - будут удалены.
Все темы, не относящиеся к "Вопросам по модам и плагинам", будут удалены или перемещены в соответствующий раздел.

Правила оформления темы:
1. Помимо заголовка не забудьте верно сформулировать свой вопрос.
2. Выложите исходник (в тег кода + ) или ссылку на плагин который вызывает у вас вопросы.
3. Выложите лог с ошибками (если имеется) под спойлер

Pbk

, Play or Be Kicked
Статус пользователя Accelerator
сообщение 14.6.2009, 7:20
Сообщение #1


Стаж: 16 лет

Сообщений: 142
Благодарностей: 45
Полезность: 252

Скачал плагин Play or Be Kicked (сокращённо PBK) вот отсюда: http://forums.alliedmods.net/showthread.php?t=15106

Сделал всё так, как там написано:
Сам плагин pbk.amxx положил в папку plugins и прописал его в plugins.ini
pbk.sma положил в папку scripting, скомпилировал
файл pbk.cfg положил в папку configs и сделал в нём сл. изменения:
CODE
// Play or Be Kicked Configuration File
echo Executing Play or Be Kicked (PBK) Configuration File


////////////////////////////////////////////////////////////////////////
// The 'join' event, as defined by this plugin, is the time between //
// when a player connects to the server and when the player chooses //
// their model, thus entering the game. Normally, a player can sit //
// in this event indefinitely, thus taking up a slot in your server. //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before
// people that haven't fully joined start getting kicked.
pbk_join_min_players 4

// Specifies the number of seconds a player has, after connecting to
// the server, to join a team before getting kicked.
// A value of 0 will disable checking of this event.
pbk_join_time 120

// Specifies the access level flags needed for a player to have
// immunity for the 'join' event. Having immunity means the player
// would not get kicked for failing to join a team.
//
// Set this CVAR to blank to disallow immunity.
//
// For available flags,
// http://wiki.amxmodx.org/index.php/Adding_A...9#Access_Levels
//
// A common value, when admin immunity is desired, is to use the
// "a" flag (ADMIN_IMMUNITY).
pbk_join_immunity_flags "a"


////////////////////////////////////////////////////////////////////////
// The 'spec' event, as defined by this plugin, is the time in which //
// a player is in spectator mode. Normally, a player can sit in this //
// mode indefinitely, thus taking up a slot in your server. //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before
// people that are in spectator mode start getting kicked.
pbk_spec_min_players 4

// Specifies the total number of seconds a player can be in spectator
// mode before they get kicked.
// A value of 0 will disable checking of this event.
pbk_spec_time 120

// Specifies the access level flags needed for a player to have
// immunity for the 'spec' event. Having immunity means the player
// would not get kicked for being in spectator mode too long.
//
// Set this CVAR to blank to disallow immunity.
//
// For available flags,
// http://wiki.amxmodx.org/index.php/Adding_A...9#Access_Levels
//
// A common value, when admin immunity is desired, is to use the
// "a" flag (ADMIN_IMMUNITY).
pbk_spec_immunity_flags "a"

// Indicates whether spectators are queried periodically, in an effort
// to determine if they are in front of the keyboard or not.
pbk_spec_query 0


////////////////////////////////////////////////////////////////////////
// The 'AFK' event, as defined by this plugin, is when a player has //
// not moved in a defined period of time. Normally, a player can be //
// AFK indefinitely, thus taking up a slot in your server. //
////////////////////////////////////////////////////////////////////////

// Specifies the the minimum number of players on the server before
// people that are AFK start getting kicked.
pbk_afk_min_players 4

// Specifies the number of seconds a player can be AFK before
// getting kicked.
// A value of 0 will disable checking of this event.
pbk_afk_time 120

// Specifies the access level flags needed for a player to have
// immunity for the 'afk' event. Having immunity means the player
// would not get kicked for being AFK too long.
//
// Set this CVAR to blank to disallow immunity.
//
// For available flags,
// http://wiki.amxmodx.org/index.php/Adding_A...9#Access_Levels
//
// A common value, when admin immunity is desired, is to use the
// "a" flag (ADMIN_IMMUNITY).
pbk_afk_immunity_flags "a"


////////////////////////////////////////////////////////////////////////
// As a courtesy to any player about to be kicked, a chat message //
// will let them know of their impending kick every 5 seconds until //
// they are kicked. //
////////////////////////////////////////////////////////////////////////

// Specifies the number of seconds a player starts getting warned before
// they are kicked.
pbk_warning_time 20

// Specifies which events to show the countdown warning for to players
// with immunity.
//
// The flags are additive. A value of 0 indicates that the countdown is
// not shown for any event.
//
// 1 - joining
// 2 - spectating
// 4 - being AFK
pbk_immunity_warning 4


////////////////////////////////////////////////////////////////////////
// Sometimes you just want to know what's been happening and when. //
// Logging the kicks from this plugin is an easy way to help //
// accomplish that. //
////////////////////////////////////////////////////////////////////////

// Indicates how to log kicks.
// The flags are addtive. A value of 0 will not log any kicks.
//
// 1 - log in the AMXX log
// 2 - log in the chat log (allows kicks to be seen in programs like
// HLSW that show you the chat log)
// 4 - log in their own file ("pbkMM.log" where "MM" is the
// two-digit month)
pbk_log 4

// Specifies the number of previous month's logs to retain.
// The current month is always retained.
pbk_log_cnt 2


////////////////////////////////////////////////////////////////////////
// When you run multiple servers, sometimes, instead of kicking //
// players into the nether, you would like to kick them over to one //
// of your other servers. //
////////////////////////////////////////////////////////////////////////

// Specifies the IP to which kicked users should be sent.
// A blank value disables this feature.
pbk_kick2_ip "10.2.136.203"

// Specifies the port to which kicked users should be sent.
pbk_kick2_port "27015"

Файл pbk.txt положил в папку lang

Запустил сервер. В консоле выдало ошибку: Invalid pbk.amxx , заменил файл на скомпилированный sma, ошибок не стало, плагин заработал. зашёл на него без прав администратора, прождал 2 минуты, не кикнуло.

Подскажите, как настроить плагин?
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   Цитировать сообщение
Статус пользователя Accelerator
сообщение 15.6.2009, 10:10
Сообщение #2


Стаж: 16 лет

Сообщений: 142
Благодарностей: 45
Полезность: 252

Up
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Makzz
сообщение 15.6.2009, 18:01
Сообщение #3


Стаж: 18 лет

Сообщений: 2198
Благодарностей: 1365
Полезность: 1080

Помоему дело в
Код
// Specifies the the minimum number of players on the server before
// people that haven't fully joined start getting kicked.
pbk_join_min_players 4

тобишь минимальное число игроков на сервере, логично предположить что раз у тебя там было не 4 игрока, то он тя и не кикнул :)
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя Accelerator
сообщение 17.6.2009, 14:21
Сообщение #4


Стаж: 16 лет

Сообщений: 142
Благодарностей: 45
Полезность: 252

попробовал поставить 0 значение, не кикает.

изучив повнимательнее тему, откуда скачал мод, наткнулся, что данный плагин будет работать только на стим сервере. теперь вопрос: есть ли данный плагин для нон-стим сервера?
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
  Тема закрытаНачать новую тему
 
0 пользователей и 1 гостей читают эту тему: