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] UserMsg Hooks - DevTools (1.0) [15-Nov-2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
68747470733a2f2f692e696d6775722e636f6d2f


Related Plugins:


About:
  • Prints UserMessage data to chat (client) or console (server).
  • Logs UserMessages structure and output data.
  • Can specify which UserMessages to listen for or filter out.
  • Example command: sm_um_watch "MusicCmd,TextMsg"
  • For more info on UserMessages: https://wiki.alliedmods.net/User_Messages
  • Auto generates up to 19 gamedata signatures! They should never break and support most games.
  • Logs messages to: "logs/user_messages_dump.log"
  • Logs structures to:"logs/user_messages_types.log"



Example Output:
Spoiler




Known Working Games:
  • L4D1
  • L4D2
  • Please report success in other games.
  • Request support if required.



Unsupported Games:
  • CSGO (method is different, requires manual hooks and/or changes)



Admin Commands: (requires "z" flag)

PHP Code:

sm_um_listen    // Starts listening to all UserMessages. Filters or listens for messages from the filter and listen cvars.
sm_um_stop      // Stop printing UserMessages.
sm_um_watch     // Start printing UserMessages. Usage: sm_um_watch <messages to watch, separate by commas> 




ConVars:

Saved to usermsg_hooks.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:

// Do not hook and these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
sm_usermsg_filter ""

// Only hook and display these UserMessages, separate by commas (no spaces). Only works for sm_usermsg_listen command.
sm_usermsg_listen ""

// 0=Off. 1=Logs all UserMessage structures. 2=Log listen UserMessage data. 4=Log listen UserMessage data with timestamps. Add numbers together.
sm_usermsg_logging "1"

// UserMsg Hooks plugin version.
sm_usermsg_version 




Changes:
Code:

1.0 (15-Oct-2019)
    - Initial release.




Requirements:

Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
  2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

Attached Files
File Type: sp Get Plugin or Get Source (usermsg_hooks.sp - 23.9 KB)
File Type: txt usermsg_hooks.games.txt (4.5 KB)
File Type: smx usermsg_hooks.smx (15.0 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

×
×
  • Dodaj nową pozycję...