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[CS:S] Simple !afk !unafk Plugin


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
This is a plugin which is as useful as simple it is.

The plugin works in a really simple way. Players type !afk when they gotta go afk and !unafk once they come back.

I know that there are plugins similar to this but I've never found a plugin like I wanted, so I decided to write one myself. Also since it's my very first plugin, I'd be appreciated if you corrected any of the errors you may find in the source code.

This plugin doesn't support language preferences at the moment so you gotta change the language from the source code.

!afk => Logs the player's current team if he is in any and then moves the player to the spectator team
!unafk => Moves back the player to their old team. If the player hasn't been in any team before the plugin will move them to a random team.

Cvars:
Code:

soup_afk_enable - Enables or disables the plugin. [ 1 = Enable | 0 = Disable ]
GitHub

Attached Files
File Type: sp Get Plugin or Get Source (goAfk.sp - 2.7 KB)
File Type: smx goAfk.smx (15.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

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

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