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

[TF2] Block suicide & Team switches (v1.0 - 24/05/2020)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About
I wrote this plugin for my Deathrun server, preventing the Activator from killing himself in various ways. Was pretty messy, so I thought I'd rewrite it.

I think I made it as efficiently as possible, but this is my first plugin so... If you have any recommendations on how to improve my code, definitely share! :)

What will this plugin block?
  • Kill
  • Explode
  • Jointeam

ConVars
  • sm_blockSuicide_enabled (1) - Enable or disable this plugin
  • sm_allowOverride (1) - Allow or disallow overrides for suicides and team switches?
  • sm_blockKillTeam (0) - Which team to block kill for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams)
  • sm_blockExplodeTeam (0) - Which team to block explode for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams)
  • sm_blockSwitchTeam (0) - Which team to block switching teams for? (0 = No team, 1 = Team RED, 2 = TEAM BLUE, 3 = Both teams)
  • sm_allowSpectate (1) - Allow or disallow switching to spectate?

Overrides
  • suicideandteamswitch_override

By default the flag is "b" (admins).

Compile Requirements
  • Morecolors.inc

Installation
- Put the .smx into tf/addons/sourcemod/plugins folder
- Put the plugin.blocksuicide.cfg in tf/cfg/sourcemod folder
- Put the blockSuicide.phrases.txt in tf/addons/sourcemod/translations folder
- Restart your server

Changelog


Notes
You'll have to download the attached .zip file or .smx file, because the web compiler cannot compile due to the <morecolors> include.
The .inc file has been included into the .zip.

Attached Files
File Type: txt blockSuicide.phrases.txt (444 Bytes)
File Type: sp Get Plugin or Get Source (blockSuicide.sp - 6.1 KB)
File Type: smx blockSuicide.smx (10.2 KB)
File Type: cfg plugin.blocksuicide.cfg (1.2 KB)
File Type: zip Block Suicide & Switching Teams.zip (20.0 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

×
×
  • Dodaj nową pozycję...