Skocz do zawartości

[RSS] [L4D & L4D2] GameTime Announcer <fork> v2.0 [8-February-2023]


GameNation

Rekomendowane odpowiedzi

about
  • a commision from my friend LindaFelicia, he request fix from source code, but i rewrited it
  • must get a steam dev key from https://steamcommunity.com/dev
  • must install extension REST in Pawn, plugin can compile online but need that to work
  • already tested on l4d1 and l4d2


Credits
i dont known by i guess plugins from [L4D2/Sourcemod] player game time display by hundunzhidian

ConVar
PHP Code:

// admin flag to access sm_gametime command and receives query results,
// a=reserved slots, empty=everyone, see more in /configs/admin_levels.cfg
gametime_access ""

// [COLOR="Red"]important:[/COLOR] valve dev key to query, get on https://steamcommunity.com/dev
gametime_devkey ""

// print messages when gametime fetch failed 1=console 2=public chat 3=both
gametime_failure "3"

// which query is prefer, if got once then dont announce another, 1=steam profile 2=achievement stats 0=display every
gametime_prefer "2"

// which gametime data sources to be query 1=steam profile 2=stats of achievement 3=both
gametime_queries "3" 

changelog
  • v2.0 (Start at 26-January-2023, Released at 8-February-2023)
    - all translation support
    - completely rewrite
    - validate response http status and validate response JSON
    - support lateload mode
    - merge Profile and Stats features on single plugin
    - fix player disconnected during requesting
    - remove color.inc requirement, but not {red} support anymore
    - solve memory leaks for handles
    - prefer mode
    - command access permission
    - support L4D1
    - dynamic wait dev key inputs
    - show all player GameTime when message receive available
    - sm_gametime [override *_prefer] display all of players gametime
    - command support console view all data
    - optional request failure actions

todo
  • maybe retry when request timeout or send fail


Installation
  • put l4d_gametime.smx on /plugins/
  • put l4d_gametime.phrases.txt on /translations/

Attached Files
File Type: sp Get Plugin or Get Source (l4d_gametime.sp - 18.2 KB)
File Type: txt l4d_gametime.phrases.txt (921 Bytes)

Przeczytaj cały wpis na stronie AlliedModders

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.