Иконка ресурса

Язь

Участник
Сообщения
24
Реакции
0
Re: Headshot Only v.1.0.1

Люди доброй ночи суток, кто знает как зделать что бы когда включаешь headshotonly минялось название сервера или хотя бы название игры???
 

Arthur Don

Участник
Сообщения
1,696
Реакции
256
Re: Headshot Only v.1.0.1

Серый™, установил твой плагин в консоли пишет ошибки, но сам плагин работает.

PHP:
L 03/05/2014 - 01:09:56: [SM] Native "GetClientWeapon" reported: Client index 62 is invalid
L 03/05/2014 - 01:09:56: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 01:09:56: [SM]   [0]  Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 01:09:56: [SM] Native "GetClientWeapon" reported: Client index 62 is invalid
L 03/05/2014 - 01:09:56: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 01:09:56: [SM]   [0]  Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 01:09:56: [SM] Native "GetClientWeapon" reported: Client index 62 is invalid
L 03/05/2014 - 01:09:56: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 01:09:56: [SM]   [0]  Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
 

Серый™

CS:S Server
Сообщения
2,925
Реакции
1,376
Re: Headshot Only v.1.0.1

artushonok, опиши кто играл, были ли боты и какие настройки плагина.
И скинь весь файл лога ошибок.
 

Arthur Don

Участник
Сообщения
1,696
Реакции
256
Re: Headshot Only v.1.0.1

Серый™, было 3 бота и 1 игрок.
PHP:
// This file was auto-generated by SourceMod (v1.5.2)
// ConVars for plugin "only_headshot.smx"


// Enable this plugin. 0 = Disabled.
// -
// Default: "1"
sm_onlyhs_enable "1"

// Enable HE Killing. 0 = Disabled.
// -
// Default: "1"
sm_onlyhs_he "0"

// Enable Knifings. 0 = Disabled.
// -
// Default: "1"
sm_onlyhs_knife "1"
L 03/05/2014 - 02:11:36: SourceMod error session started
L 03/05/2014 - 02:11:36: Info (map "de_dust2") (file "errors_20140305.log")
L 03/05/2014 - 02:11:36: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:11:36: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:11:36: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:11:36: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:11:36: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:11:36: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:18:25: SourceMod error session started
L 03/05/2014 - 02:18:25: Info (map "de_dust2") (file "errors_20140305.log")
L 03/05/2014 - 02:18:25: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:18:25: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:18:25: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:18:25: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:18:25: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:18:25: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:18:25: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:18:25: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:18:25: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:21:10: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:21:10: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:21:10: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:21:10: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:21:10: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:21:10: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:22:32: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:22:32: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:22:32: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:22:32: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:22:32: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:22:32: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
L 03/05/2014 - 02:22:32: [SM] Native "GetClientWeapon" reported: Client index 45 is invalid
L 03/05/2014 - 02:22:32: [SM] Displaying call stack trace for plugin "only_headshot.smx":
L 03/05/2014 - 02:22:32: [SM] [0] Line 121, E:\server\Server_hs\cstrike\addons\sourcemod\scripting\only_headshot.sp::OnTraceAttack()
 

Серый™

CS:S Server
Сообщения
2,925
Реакции
1,376
Re: Headshot Only v.1.0.1

artushonok, если взрывные то они бесполезны так в конфиге убийство с гранаты выключено.
Проверю у себя по настройкам и гранатам.
 

rotmir

Участник
Сообщения
138
Реакции
25
Re: Headshot Only v.1.0.1

Можно ли так что бы плагин был отключен , но когда захотел включил через админку , так как я прописывал в adminmenu_custom.txt не появляется новый пункт(((
 

Yes Boss

Участник
Сообщения
5
Реакции
3
Re: Headshot Only v.1.0.1

Можно ли так что бы плагин был отключен , но когда захотел включил через админку , так как я прописывал в adminmenu_custom.txt не появляется новый пункт(((

тык а потом зайди addons/sourcemod/configs/adminmenu_custom.txt и вставь туда

PHP:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
    "Управление модом HS" 
    { 
        "admin"        "sm_rcon"
        "Включить Hs" 
        { 
            "cmd"           "sm_onlyhs_enable #1" 
            "execute"        "server" 
            "1" 
            { 
                "type"         "list" 
                "title"        "Включить Hs:" 
                "1"            "1" 
                "1."        "Включить" 
                "2"            "0" 
                "2."        "Выключить" 
            } 
        } 
        "Убийство с ножа" 
        { 
            "cmd"           "sm_onlyhs_knife #1" 
            "execute"        "server" 
            "1" 
            { 
                "type"         "list" 
                "title"        "Убийство с ножа:" 
                "1"            "1" 
                "1."        "Включить" 
                "2"            "0" 
                "2."        "Выключить" 
            } 
        } 
        "Убийство с грены" 
        { 
            "cmd"           "sm_onlyhs_he #1" 
            "execute"        "server" 
            "1" 
            { 
                "type"         "list" 
                "title"        "Убийство с грены:" 
                "1"            "1" 
                "1."        "Включить" 
                "2"            "0" 
                "2."        "Выключить" 
            } 
        } 
    }  
}

P.S. И сохрани в формате UTF-8 без BOM
и будет счастье!:beer:
 

rotmir

Участник
Сообщения
138
Реакции
25
Re: Headshot Only v.1.0.1

Спасибо помогло)
 
Последнее редактирование:

MIV

Участник
Сообщения
613
Реакции
32
Подскажите что прописать админу, чтоб вылезло голосование на включение sm_headshotonly_enabled 1
 

Saliba

Участник
Сообщения
63
Реакции
5
Как прописать разные звуковые файлы для воспроизведения при хеде?
 

syroviy

Участник
Сообщения
60
Реакции
2
Как сделать на только на диглы? Или же на определённую карту?
 
Сверху Снизу