Несколько шагов для создания выделенного сервера:
1. Скачать специальный обновлятор сервера Update Server: КЛАЦ
2. Положите его в папку с установленным IW4.
-> Стандартный путь к папке C: \ Program Files (x86) \ Steam \ SteamApps \ common \ IW4 \
3. Перейдите в папку \ Main \ и создаем новый файл с именем "server.cfg"
4. Открываем "server.cfg" с помощью блокнота. Скопируйте весь код (Ctrl + A, Ctrl + C), а затем вставьте его в "server.cfg".
Код
/////////////////////////////////////////////////////////////// FourDeltaOne IW4M Server Configuration file ///
////////////////////////////////////////////////////////////
//////////////////////////////////////////////////
// SERVER NAME & COLORS TIPS //
//////////////////////////////////////////////////
// //
// ^1 = Red //
// ^2 = Green //
// ^3 = Yellow //
// ^4 = Blue //
// ^5 = Cyan //
// ^6 = Pink //
// ^7 = White //
// ^8 = Random Color //
// ^9 = Grey //
// ^0 = Black //
// //
// Hostname Example: ^5I ^6AM ^2LAZY //
// //
//////////////////////////////////////////////////
set sv_hostname "^5FourDeltaone ^7Server" // Please put a server host name here
//////////////////////////////////////////////////
// MASTERSERVER CONFIGURATION //
//////////////////////////////////////////////////
//If you wish to not share your server to other //
//clients then remove the address. //
//Example sv_master# "" //
// //
//////////////////////////////////////////////////
set sv_master2 "master.alterrev.net" // aRev client (sv_master2 "" to disable this)
set sv_master3 "server.iw4play.de" // IW4Play Client (sv_master3 "" to disable this)
//////////////////////////////////////////////////
// INFO //
//////////////////////////////////////////////////
sets _Admin "Admin" // Your username.
sets _Email "youandme@example.org" // E-mail address. you can leave blank
sets _Website "http://fourdeltaone.net" // Website
sets _Location "EU - West" // Location
//////////////////////////////////////////////////
// NON-GAMEPLAY CONFIGURATION //
//////////////////////////////////////////////////
set rcon_password "" // Access to your server to change stuff remotely. empty = disabled
set privateMatch_serverPassword "" // Password Protected Game. Leave blank if you want players to join
set sv_allowClientConsole "1" // Enable or Disable players ability to access server commands
set party_maxplayers "18" // Maximum players that can't enter server
set sv_maxPing "0" // maximum ping allowed, any higher and players will get kicked.( If you get server is for low ping players only, set this to 0)
set sv_timeout "20" // Timeout time period. You will timeout after (20) seconds when attempting to connect or if you are getting connection interruptions
set sv_reconnectlimit "3" // How many times you can try to reconnect
set g_inactivity "120" // Enable or Disable auto kick feature for idle/AFK players
set g_inactivitySpectator "180" // time in seconds before a spectator gets kicked
set g_logSync "1" // 1 = always flush games_mp.log, 0 = only flush on game end
set g_log "games_mp.log" // Gamelog filename
set com_logFilter "1" // Removes ~95% of unneeded lines from the log.
set sv_pure "0" // verifying cilent files
set sv_sayName "^7Console" // name server-side 'say' commands show up as
set iw4m_suicideMsg "1" // custom suicide messages
set sv_floodProtect "3" // Chat Spam Protection
set sv_kickBanTime "300" // Kick Ban Duration. Time before player can re-join the server after getting kicked.
set iw4m_secure "1" // Enable checking of 'clean' client status
set iw4m_remoteKick "1" // Allow the master server to kick unclean clients automatically
set iw4m_onelog "1" // games_mp.log will always be created on m2demo folder, even if you run or change mods.
set scr_game_objectiveStreaks "1" // 1 = Turn on chopper, AC130 and nukes. 0 = Turn them off
//////////////////////////////////////////////////
// VOTING CONFIGURATION //
//////////////////////////////////////////////////
set g_voteBanRatio "0.80" // Ratio required for voteban
set g_voteKickRatio "0.60" // Ratio required for votekick
set g_voteBankMin "4" // Minimum votes required for voteban. -1 to disable.
set g_voteKickMin "4" // Minimum votes required for votekick. -1 to disable
set g_voteBanDelay "30" // Time in seconds after game init before voteban is allowed
set g_voteKickDelay "30" // Time in seconds after game init before votekick is allowed
set g_voteBanLimit "3" // Maximum amount of votebans allowed per player
set g_voteKickLimit "3" // Maximum amount of votekicks allowed per player
//////////////////////////////////////////////////
// BASE GAME CONFIGURATION //
//////////////////////////////////////////////////
// //
// war - Team Deathmatch //
// dm - Free-for-all //
// dom - Domination //
// koth - Headquarters //
// sab - Sabotage //
// sd - Search and Destroy //
// arena - Arena //
// dd - Demolition //
// ctf - Capture the Flag //
// oneflag - One-Flag CTF //
// gtnw - Global Thermo-Nuclear War //
// oitc - one in the chamer //
// gg - Gun Game //
// ss - Sharp Shooter //
// //
//////////////////////////////////////////////////
set g_gametype "war" //Choose a gametype from the list above.
set scr_player_forcerespawn "1" // Players respawn automatically after being fragged
set scr_thirdperson "0" // third-person mode
set scr_game_hardpoints "1" // Enable/Disable Killstreak rewards
set scr_hardpoint_allowhelicopter "1" // Allow Attack Helicopters
set scr_hardpoint_allowuav "1" // Allow UAV
set scr_hardpoint_allowartillery "1" // Allow Airstrikes
set scr_game_perks "1" // Allow players to have perks
set scr_game_allowkillcam "1" // Allow Killcam.
set scr_nukeTimer "10" // Timer when nuke goes off
set scr_diehard "0" // die-hard mode
set scr_teambalance "1" // Enable or Disable auto balance.
set scr_game_spectatetype "2" // Allow Spectators. 0 = Disabled, 1 = Team/Player only, 2 = Free
set scr_player_suicidespawndelay "0" // Wait before you respawn if you committed suicide.
set scr_player_sprinttime "4" // Sprint time, duration a player can run.
//////////////////////////////////////////////////
// HARDCORE CONFIGURATION //
//////////////////////////////////////////////////
// uncomment below commands for some hardcore //
// by removing the // before each set dvar. //
//////////////////////////////////////////////////
// set g_hardcore "1" // Enable or Disable Hardcore Mode.
// set ui_hud_hardcore "1" // Heads up display.
// set scr_hardcore "1" // Enable or Disable Hardcore Mode.
// set scr_game_deathpointloss "0" // Points Loss on death XP.
// set scr_game_onlyheadshots "1" // Enable/Disable Only Headshots mode. You can only kill players by taking headshots.
// set scr_player_maxhealth "30" // Percent of Health players will have on Respawn.
// set scr_team_fftype "1" // Enable or Disable Friendly Fire. 1 = on, 2 = reflect, 3 = shared
// set scr_player_healthregentime "0" // Time it takes you to recover damage.
// set scr_team_kickteamkillers "0" // Anyone who team kills, gets kicked automatically if you enable this feature.
// set scr_team_teamkillspawndelay "20" // Team Killer gets a respawn penalty of specified seconds (20).
//////////////////////////////////////////////////
// AIRDROP CONFIGURATION //
//////////////////////////////////////////////////
// uncomment below commands for airdrop config //
// by removing the // before each set dvar. //
// //
// Weight (1->1000) //
// Selection is weighted random //
// higher weights increase selection chance //
//////////////////////////////////////////////////
// set scr_airdrop_ac130 "3"
// set scr_airdrop_ammo "17"
// set scr_airdrop_counter_uav "15"
// set scr_airdrop_emp "1"
// set scr_airdrop_harrier_airstrike "7"
// set scr_airdrop_helicopter "7"
// set scr_airdrop_helicopter_flares "5"
// set scr_airdrop_helicopter_minigun "3"
// set scr_airdrop_nuke "0"
// set scr_airdrop_precision_airstrike "11"
// set scr_airdrop_predator_missile "12"
// set scr_airdrop_sentry "12"
// set scr_airdrop_stealth_airstrike "5"
// set scr_airdrop_uav "17"
//////////////////////////////////////////////////
// EMERGENCY AIRDROP CONFIGURATION //
//////////////////////////////////////////////////
// uncomment below commands for airdrop config //
// by removing the // before each set dvar. //
// //
// Weight (1->1000) //
// Selection is weighted random //
// higher weights increase selection chance //
//////////////////////////////////////////////////
// set scr_airdrop_mega_ac130 "2"
// set scr_airdrop_mega_ammo "12"
// set scr_airdrop_mega_counter_uav "16"
// set scr_airdrop_mega_emp "0"
// set scr_airdrop_mega_harrier_airstrike "5"
// set scr_airdrop_mega_helicopter "5"
// set scr_airdrop_mega_helicopter_flares "3"
// set scr_airdrop_mega_helicopter_minigun "2"
// set scr_airdrop_mega_nuke "0"
// set scr_airdrop_mega_precision_airstrike "10"
// set scr_airdrop_mega_predator_missile "14"
// set scr_airdrop_mega_sentry "16"
// set scr_airdrop_mega_stealth_airstrike "3"
// set scr_airdrop_mega_uav "12"
//////////////////////////////////////////////////
// FREE FOR ALL GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dm_scorelimit "10000" // Score limit to win the game.
set scr_dm_timelimit "15" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dm_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
set scr_dm_numlives "0" // Number of lives per player 0 for unlimited.
set scr_dm_promode "0"
//////////////////////////////////////////////////
// TEAM DEATHMATCH GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_war_scorelimit "10000" // Score limit to win the game.
set scr_war_timelimit "15" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_war_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
set scr_war_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_war_numlives "0" // Number of lives per player 0 for unlimited.
set scr_war_promode "0"
set scr_war_roundlimit "1" // Rounds per game.
set scr_war_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// DOMINATION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dom_scorelimit "200" // Score limit to win the game.
set scr_dom_timelimit "60" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dom_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
set scr_dom_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_dom_numlives "0" // Number of lives per player 0 for unlimited.
set scr_dom_promode "0"
set scr_dom_roundlimit "1" // Rounds per game
set scr_dom_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// DEMOLITION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dd_scorelimit "2" // Score limit needed to win.
set scr_dd_timelimit "2.5" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dd_roundswitch "1" // Rounds before the teams switch the sides.
set scr_dd_bombtimer "45" // Time the bomb takes to detonate.
set scr_dd_defusetime "5" // Time taken to defuse the bomb.
set scr_dd_extratime "3"
set scr_dd_numlives "0" // Lives per player 0 for unlimited.
set scr_dd_planttime "5" // Time it takes to plant a bomb in seconds.
set scr_dd_roundlimit "3" // Rounds the game is limited to, if there are no winners.
set scr_dd_playerrespawndelay "0" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
set scr_dd_promode "0"
//////////////////////////////////////////////////
// SEARCH AND DESTROY GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sd_scorelimit "1" // Score limit required to win the game.
set scr_sd_timelimit "2.5" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sd_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
set scr_sd_waverespawndelay "0" // Delay for first respawn.
set scr_sd_numlives "1" // Number of lives per player per game.
set scr_sd_roundlimit "0" // Rounds the game is limited to 0 for unlimited.
set scr_sd_winlimit "4" // amount of wins needed to win a round-based game
set scr_sd_roundswitch "1" // after X rounds, switch sides
set scr_sd_bombtimer "45" // Time taken for the bomb to detonate.
set scr_sd_defusetime "5" // Time taken to defuse the bomb.
set scr_sd_multibomb "0" // allow multiple people to 'have the bomb'
set scr_sd_planttime "5"
set scr_sd_promode "0"
//////////////////////////////////////////////////
// SABOTAGE GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sab_scorelimit "0" // Score limit to win the match.
set scr_sab_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sab_bombtimer "45" // Duration in seconds the bomb takes to detonate.
set scr_sab_defusetime "5" // Time taken to defuse the bomb.
set scr_sab_hotpotato "0" // One bomb that the teams must fight over. One defending and one have to plant at the site.
set scr_sab_numlives "0" // Number of lives players get.
set scr_sab_planttime "2.5" // Time taken to plant the bomb.
set scr_sab_playerrespawndelay "7.5" // Time before respawn.
set scr_sab_roundlimit "1" // Rounds per game.
set scr_sab_roundswitch "1" // Rounds needed to be played before the teams switch sides.
set scr_sab_waverespawndelay "0" // Time delay for first respawn before the game.
set scr_sab_promode "0"
//////////////////////////////////////////////////
// CAPTURE THE FLAG GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_ctf_scorelimit "3" // Target score before the round ends.
set scr_ctf_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_ctf_numlives "0" // Number of lives per player 0 for unlimited.
set scr_ctf_playerrespawndelay "0" // Respawn wait in seconds.
set scr_ctf_roundlimit "1" // How many rounds match would last.
set scr_ctf_roundswitch "1" // Rounds before the teams switch sides.
set scr_ctf_waverespawndelay "10"
//////////////////////////////////////////////////
// ONE FLAG GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_oneflag_scorelimit "1" // Target score before the round ends.
set scr_oneflag_timelimit "3" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_oneflag_numlives "0" // Number of lives per player 0 for unlimited.
set scr_oneflag_playerrespawndelay "0" // Respawn wait in seconds.
set scr_oneflag_roundlimit "1" // How many rounds match would last.
set scr_oneflag_roundswitch "1" // Rounds before the teams switch sides.
set scr_oneflag_waverespawndelay "0"
//////////////////////////////////////////////////
// HEADQUARTERS GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_koth_scorelimit "250" // Score limit to win the game.
set scr_koth_timelimit "10" // Duration in minutes the game will continue if the score isn't reached.
set scr_koth_numlives "0" // Number of lives per game. 0 for unlimited.
set scr_koth_playerrespawndelay "0" // Players respawn wait.
set scr_koth_roundlimit "1" // Rounds to be played.
set scr_koth_roundswitch "1" // Rounds to be played before teams switch sides.
set scr_koth_winlimit "1" // rounds per game
set scr_koth_waverespawndelay "0" // First respawn delay for each round.
set koth_proMode "0"
//////////////////////////////////////////////////
// ARENA GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_arena_scorelimit "1" // Score limit to win the game.
set scr_arena_timelimit "2.5" // Duration in minutes the game will continue if the score isn't reached.
set scr_arena_numlives "1" // Number of lives per game 0 for unlimited.
set scr_arena_roundlimit "0" // Rounds to be played.
set scr_arena_roundswitch "3" // Rounds before the teams switch sides.
set scr_arena_winlimit "4" // rounds per game
set scr_arena_promode "0"
//////////////////////////////////////////////////
// GLOBAL THERMONUCLEAR WAR GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_gtnw_scorelimit "100" // Score limit to win the game.
set scr_gtnw_timelimit "6" // Duration in minutes the game will continue if the score isn't reached.
set scr_gtnw_numlives "0" // Number of lives per game 0 for unlimited.
set scr_gtnw_playerrespawndelay "0" // Players respawn wait.
set scr_gtnw_roundlimit "1" // Rounds to be played.
set scr_gtnw_roundswitch "0" // Rounds before the teams switch sides.
set scr_gtnw_waverespawndelay "0" // First respawn delay for each round.
set scr_gtnw_winlimit "1" // rounds per game
set scr_gtnw_promode "0"
//////////////////////////////////////////////////
// MAP ROTATION TIPS //
//////////////////////////////////////////////////
// //
//Example: sv_maprotation "map mp_rust map mp_" //
// //
// mp_afghan - Afghan //
// mp_derail - Derail //
// mp_estate - Estate //
// mp_favela - Favela //
// mp_highrise - Highrise //
// mp_invasion - Invasion //
// mp_checkpoint - Karachi //
// mp_quarry - Quarry //
// mp_rundown - Rundown //
// mp_rust - Rust //
// mp_boneyard - Scrapyard //
// mp_nightshift - Skidrow //
// mp_subbase - Sub Base //
// mp_terminal - Terminal //
// mp_underpass - Underpass //
// mp_brecourt - Wasteland //
// //
//// DLC1 STIMULUS ///////////////////////////////
// //
// mp_complex - Bailout //
// mp_crash - Crash //
// mp_overgrown - Overgrown //
// mp_compact - Salvage //
// mp_storm - Storm //
// //
//// DLC2 RESURGENCE /////////////////////////////
// //
// mp_abandon - Carnival //
// mp_fuel2 - Fuel //
// mp_strike - Strike //
// mp_trailerpark - Trailer Park //
// mp_vacant - Vacant //
// //
//// DLC3 FOURDELTAONE ///////////////////////////
// //
// oilrig - Oilrig //
// invasion - BurgerTown //
// iw4_credits - Its Basicly A Cube //
// gulag - Gulag //
// contingency - Contingency //
// so_ghillies - Pripyat //
// //
//////////////////////////////////////////////////
///////////////////////////////////////////////////////
// GAMETYPE ROTATION TIPS //
///////////////////////////////////////////////////////
// //
// Example: set sv_maprotation //
// "gametype dm map mp_rust gametype war map oilrig" //
// //
// war - Team Deathmatch //
// dm - Free-for-all //
// dom - Domination //
// koth - Headquarters //
// sab - Sabotage //
// sd - Search and Destroy //
// arena - Arena //
// dd - Demolition //
// ctf - Capture the Flag //
// oneflag - One-Flag CTF //
// gtnw - Global Thermo-Nuclear War //
// oitc - one in the chamer //
// gg - Gun Game //
// ss - Sharp Shooter //
// //
///////////////////////////////////////////////////////
set sv_mapRotation "map mp_afghan map mp_derail map mp_estate map mp_favela map mp_highrise map mp_invasion map mp_checkpoint map mp_quarry map mp_rundown map mp_rust map mp_boneyard map mp_nightshift map mp_subbase map mp_terminal map mp_underpass map mp_brecourt map mp_complex map mp_crash map mp_overgrown map mp_compact map mp_storm map mp_abandon map mp_fuel2 map mp_strike map mp_trailerpark map mp_vacant map oilrig map invasion map iw4_credits map gulag map contingency map so_ghillies"
-> По желанию вы можете изменить список карт на сервере
-> Убедитесь, что DLC карты установлены
5. Переименовавываем "iw4m.dat" в "iw4m.exe". Создайте ярлык "iw4m.exe" и перейдите к следующему шагу:
->Щелкните правой кнопкой мыши на ярлык "iw4m.exe" и выберите "Свойства"
-> И в поле "Объект" нажмите пробел и введите следующее:
Код
+set party_maxplayers 18 +set net_port 28961 +exec server.cfg +map mp_rust +map_rotate -dedicated -console
6. Команда порта "+set net_port <port>"
-> По умолчанию стоит порт 28 960 (но мы будем использовать 28 961, на всякий случай)
-> Убедитесь, что порты открыты на компьютере / сервере...
Проблемы, которые часто задаются игроками, пользователями
:
В: Не могу подключиться к моему серверу? Моего сервера не видно в списке серверов? Что делать?
О: Для подключения вам необходимо перейти на консоль (console)и вписать '' <connect ваш локальнальный ip:port> ", а затем нажмите клавишу ENTER.
-> Например "connect 192.168.2.6:28961"
-> Насколько мне известно, на 127.0.0.1 работать не будет.
В: Не могу узнать свой локальный IP-адрес ?
О: Узнать свой локальный IP-адрес довольно просто для этого нужно сделать следующее:
-> Нажмите Пуск -> Выполнить (Win+R)
-> Пишем "cmd" (БЕЗ ковычек)
-> В появившемся окне пишем "ipconfig" (также БЕЗ ковычек)
А так же можно узнать на различных сайтах (просто поищите в гугле)