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

[ANY] Advanced Admin List


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[ANY] Advanced Admin List


Features:
  • Players can view the online admin list.
  • Admins can remain invisible in the admin list for stealth circumstances.
  • Server Owners can track admins' activity by using the command /adminstime.
  • Auto reset for admins' activity per week (as the default value).
  • SQLite system that saves all the data.

Visibility idea was taken from a plugin which I can no longer find now.

NOTE: Admins are being added to the admin list by the KICK flag, which currently cannot be edited.

ConVars:
  • sm_admins_vip - Should VIPs appear in the admin list? 1 - yes, 0 - no. (default: 0)
  • sm_admins_vipflag - VIP Flag in letters, as written in admin_levels.cfg (default: 'o')
  • sm_admins_resetime - Time in seconds to reset admins' activity. (default: 604800)
  • sm_admins_minimum - Minimum time in minutes for admins to be active on the server. (default: 420)

NOTE: Changing sm_admins_resetime value will reset the timer.

Commands:
  • sm_admins - Command for players to view online admins.
  • sm_admins <0/1> - Command for admins to enable/disable visibility (default flag: KICK).
  • sm_nextreset - Command for admins to view the upcoming reset date (default flag: KICK).
  • sm_hours - Command for admins to view their activity in HH:MM format (default flag: KICK).
  • sm_adminstime - Command for Server Owners to view their admins' activity (default flag: ROOT).

Installation:
  1. Place the .smx file in addons/sourcemod/plugins
  2. Add the code to addons/sourcemod/configs/databases.cfg:
    Code:

    "AdminList"
    {
            "driver"                        "sqlite"
            "database"                        "AdminList"
    }

  3. Reload the map and enjoy!

Todo:
  • Add support for MYSQL.
  • Add ConVar for the required admin flag to appear in the admin list.

Changelog:

Code:

1.0 - Initial Release

Attached Files
File Type: sp Get Plugin or Get Source ([ANY] Admin List.sp - 13.1 KB)
File Type: smx [ANY] Admin List.smx (11.1 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ę...