Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[ANY] Vote server restart


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
This plugin is intended to introduce server restart ability with a menu command.
Features:
- highly customizable text options (see translation file), available for:
* chat (once)
* chat (repeatable)
* hint (center screen) text
* console
* kick message

- safe server shutdown, algorithm:
* freeze all players to make attention to this important vote
* stops the director (for L4D series only)
* unload all plugins
* unload accelerator extension to prevent the false crash report
* kick all players with an appropriate (adjustable) message
* actual server restart

- Logging
- Cancel / force the vote
- Multiple admin flags are supported
Logfile location:
- addons/sourcemod/logs/vote_restart.log
Requirements:
- GeoIP extension (included in SourceMod).
Commands:
- sm_restart - Start the vote with access check
- sm_voterestart - same as above
- sm_veto - Allow admin to veto current vote (with "d", ban flag)
- sm_votepass - Allow admin to bypass current vote (with "z" flag)
ConVars (settings):
Available in: cfg/sourcemod/sm_voterestart.cfg:

sm_voterestart_accessflag - def.: z - Admin flag(s) required to start the vote
sm_voterestart_method - def.: 2 - Restart method (1 - _restart, 2 - crash)
sm_voterestart_log - def.: 1 - Use logging? (1 - Yes / 0 - No)
sm_voterestart_unload_ext_num - def.: 0 - If you have Accelerator extension, you need specify here order number of this extension in the list: sm exts list
sm_voterestart_announcedelay - def.: 5.0 - Delay (in sec.) between announce and vote menu appearing
sm_voterestart_timeout - def.: 10 - How long (in sec.) does the vote last
sm_voterestart_actiondelay - def.: 5 - Delay (in sec.) before actual restarting, after displaying restart message
Languages
- Russian
- English
Installation
1. Place l4d_voterestart.smx file to addons/sourcemod/plugins
2. Place l4d_voterestart.phrases.txt file to addons/sourcemod/translations
3. Change the map
4.
If you have "Accelerator" extension, do this:

Related plugins:
[ANY] Restart empty server
ChangeLog:
Spoiler

TODO:
- Find a way to detect Accelerator extension load order number automatically.

Attached Files
File Type: sp Get Plugin or Get Source (l4d_voterestart.sp - 12.2 KB)
File Type: txt l4d_voterestart.phrases.txt (2.3 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...