RSSy MYGO.pl Opublikowano Sierpień 22, 2017 o 04:08 RSSy Udostępnij Opublikowano Sierpień 22, 2017 o 04:08 Button DetectorVersion: 1.0.0 | Made by: FusionLock - Fusion Developments Description: Quote: This is a super simple plugin that detects button presses and releases. This is based on a code snippet released by "psychonic" (Thread by psychonic) This plugin has two forwards, OnButtonPressed and OnButtonReleased, you use them like any other forward you would. Examples: Code: public void OnButtonPressed(int iClient, int iButton) { PrintToChat(iClient, "You pressed %i", iButton); } Code: public void OnButtonReleased(int iClient, int iButton) { PrintToChat(iClient, "You released %i", iButton); } Here's a video proving that the plugin works: Usage: Quote: To use this in your plugin make sure buttondetector.smx is running and add this include to your plugin and use the forwards like normal. Code: #include <buttondetector> Browse The Source CodeDownload The Plugin Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
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ę