Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[forums.alliedmods.net] [L4D & L4D2] Vote Mode (1.0) [28-Feb-2012]


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 488
  • Lokalizacja:AMXX.PL
Offline

Napisano 28.02.2012 12:00

Dołączona grafika Dołączona grafika
Dołączona grafika
Dołączona grafika

About:
  • Allows players to vote change the game mode.
  • Admins can force change the game mode.
  • Displays a menu listing game modes specified from a config.
  • 2 configs provided, one with Valve game modes and the other with community made mutations from the All Mutations Unlocked addon.
Thanks:
  • Mr.RuyC and NanX - For help testing the plugin on their server.
  • n3wton and chundo - For source code (credits inside).
  • Rayman1103 and everyone who contributed to the All Mutations Unlocked addon.
  • disawar1 - For testing and Russian translations.
  • Mr. Man
  • ilyaadminman
Known Bugs:
  • Switching to coop from versus will put 4 players in spectator (unless you have 4+ coop).
  • Switching to versus with l4d_votemode_restart "2" causes only 1 round to play before changing chapter. Set the cvar to "1".
Custom Menu and Config:
  • The menu is generated from a key value config
  • The config must be saved to l4d_votemode.cfg in your left4deadaddonssourcemoddata folder.
  • Each section ("Coop" in this example) is displayed as an option. Each key ("Bleed Out") is listed and will change the game mode to it's value ("mutation3").

Code: "gamemodes"
{
"Coop"
{
"Realism" "realism"
"Bleed Out" "mutation3"
}
}
Commands:



PHP Code:

// All players
sm_votemode // Displays a menu to vote the game into a different mode.

// Admins only (requires "z" flag)
sm_forcemode // Allows admins to force the game into a different mode.
sm_passmode // Allows admins to pass a current vote.
sm_vetomode // Allows admins to veto a current vote.

// Examples:
// You can also vote/force the game mode by specifying the mode, for example:
sm_votemode realism
sm_forcemode mutation12


Cvars:

Saved to l4d_votemode.cfg in your left4deadcfgsourcemod folder.



PHP Code:

l4d_votemode_admin_menu "1" // 0=No, 1=Display in the Server Commands of admin menu.
l4d_votemode_admin_flag "" // Players with these flags can vote to change the game mode.
l4d_votemode_restart "1" // 0=No restart, 1=With 'changelevel' command, 2=Restart map with 'mp_restartgame' cvar.
l4d_votemode_timeout "30.0" // How long the vote should be visible.
l4d_votemode_version // Vote Mode plugin version.


Installation:
  • Click "Get Plugin" and save to your addonssourcemodplugins folder.
  • Download the l4d_votemode.cfg and save to your addonssourcemoddata folder. This includes all game modes from Valve.
  • Download the "translations.zip", extract the "translation" folder to your addonssourcemod folder and overwrite to add the translations.
Optional:
  • Alternatively download the l4d_votemode_all.cfg. This includes all game modes from Valve and the All Mutations Unlocked addon.
  • Save to your addonssourcemoddata folder. You must rename this file to l4d_votemode.cfg.
  • You must have the above addon or the custom game modes will not work.

Attached Files Dołączona grafika l4d_votemode.cfg (1.1 KB) Dołączona grafika l4d_votemode_all.cfg (5.8 KB) Dołączona grafika translations.zip (1.1 KB) Dołączona grafika Get Plugin or Get Source (l4d_votemode.sp - 16.9 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych