Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[forums.alliedmods.net] [DEV] Event Info


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 16.02.2012 17:40

[DEV] Event Info
Version: 1.0.0


Hello again everyone. Today I bring all of you a handy dandy plugin which dynamically hooks all possible game events.

This plugin is very large once compiled, due to the very large arrays that it creates. To reduce size of the plugin, change MAX_EVENTS to something smaller, I know that L4D2 in total has about 300 events, but most games don't have that many. You can reduce this to about 200 or less for most games.

These commands are used to begin printing event info to chat:
These commands need the generic admin flag to be used!

"sm_listen <event>" "Start or stop listening to an event"
Ex: sm_listen player_hurt
The above example starts listening to player_hurt
^This command works as a toggle.

"sm_keylisten <event> [keyname]" "Start or stop listening to an event"
Ex: sm_keylisten player_hurt
The above example starts listening to player_hurt and all of its keys
Ex2: sm_keylisten player_hurt userid
The above example starts listening to player_hurt and only its userid key.
^This command works as a toggle on an individual key level and at an event level.



"sm_listentoall" "Start listening to all events"
^This is not a toggle, use sm_stoplisten to stop listening to all events.

"sm_keylistentoall"
"Start listening to all events and their keys"
^This is not a toggle, use sm_stoplisten to stop listening to all events and keys.

"sm_stoplisten"
"Stop listening to all events and keys"

"sm_listevents" "List all hooked events"

"sm_listkeys <event>" "List all keys for an event"
Ex: sm_listkeys player_hurt

"sm_searchevents <searchstring>" "Search for events"
Ex: sm_searchevents player
^This example will find all events that contain "player" and print them to you.

History:
1.0.0 - Initial Release



Attached Files Dołączona grafika Get Plugin or Get Source (dev_eventinfo.sp - 13.6 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych