Как добавить сервера в меню Counter-Strike?
Приступим:
1) Заходим в ...cstrike/resourse/GameMenu.res и открываем с помощью блокнота или другого текстового редактора.
2) Создаем в каком-нибудь месте такой блок:
Code
"номер"
{
"label" "название сервера"
"command" "engine connect айпишник"
}
И произвольно добавляем его к коду GameMenu.res.
Все номера идут по очереди, вот так:
Code
}
"10"
{
"label" ""
}
"11"
{
"label" ""
}
"12"
{
И так смотрим, вот таким код выглядит у меня:
Code
"GameMenu"
{
"1"
{
"label" "#GameUI_GameMenu_ResumeGame"
"command" "ResumeGame"
"OnlyInGame" "1"
}
"2"
{
"label" "#GameUI_GameMenu_Disconnect"
"command" "Disconnect"
"OnlyInGame" "1"
"notsingle" "1"
}
"4"
{
"label" "#GameUI_GameMenu_PlayerList"
"command" "OpenPlayerListDialog"
"OnlyInGame" "1"
"notsingle" "1"
}
"8"
{
"label" ""
"command" ""
"OnlyInGame" "1"
}
"9"
{
"label" "[N-Line] Professional League [classic]"
"command" "engine connect 193.41.218.18:27015"
}
"10"
{
"label" "[N-Line] Professional League [CSDM]"
"command" "engine connect 193.41.218.19:27015"
}
"11"
{
"label" "[N-Line] Professional League [Arena]"
"command" "engine connect 193.41.218.20:27015"
}
"12"
{
"label" "[N-Line] Professional League [Dust2_2x2]"
"command" "engine connect 193.41.218.21:27015"
}
"13"
{
"label" "[N-Line] Professional League [Cw#1]"
"command" "engine connect 193.41.218.22:27015"
}
"14"
{
"label" "[N-Line] Professional League [Cw#2]"
"command" "engine connect 193.41.218.23:27015"
}
"19"
{
"label" ""
}
"20"
{
"label" "#GameUI_GameMenu_NewGame"
"command" "OpenCreateMultiplayerGameDialog"
}
"21"
{
"label" "#GameUI_GameMenu_FindServers"
"command" "OpenServerBrowser"
}
"22"
{
"label" "#GameUI_GameMenu_Options"
"command" "OpenOptionsDialog"
}
"23"
{
"label" "#GameUI_GameMenu_Quit"
"command" "Quit"
}
}
Кому надо, может взять файл с исходником ниже
Скачать GameMenu.rar (441 bytes)