Skocz do zawartości
  • Drogi gościu!

    Tutaj możesz się zarejestrować lub zalogować:

[RSS Pluginy] [ANY?] Button Detector


GLOBALELITE.pl

Rekomendowane odpowiedzi

  • GLOBALELITE.PL
Button Detector
Version: 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:


Button List

PHP Code:
#define ATTACK        1
#define JUMP         2
#define DUCK         4
#define FORWARD        8
#define BACK        16
#define USE            32
#define CANCEL        64
#define LEFT         128
#define RIGHT        256
#define MOVELEFT     512
#define MOVERIGHT     1024
#define ATTACK2        2048
#define RUN            4096
#define RELOAD        8192
#define ALT1        16384
#define ALT2        32768
#define SCORE        65536
#define SPEED        131072
#define WALK        262144
#define ZOOM        524288
#define WEAPON1        1048576
#define WEPAON2        2097152
#define BULLRUSH     4194304
#define GRENADE1     8388608
#define GRENADE2     16777216
#define ATTACK3        33554432 


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 Code
Download The Plugin


Attached Files zip.gifbuttondetector_1.0.0.zip (6.9 KB)


Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=300579&goto=newpost

Odnośnik do odpowiedzi
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający

    Brak zarejestrowanych użytkowników przeglądających tę stronę.


O GLOBALELITE.PL


Chcemy pokazać absolutnie wszystkim, że człowiek jest zdolny do rzeczy wielkich! Potrzebujemy tylko waszej pomocy. Dzięki ciężkiej pracy chcemy udowodnić, że razem możemy wszystko! Szukamy ludzi ambitnych i skorych do poświeceń, ludzi którzy są godni, aby dołączyć do globalnej elity społeczności, którą traktuje się jak drugą rodzinę!

Istniejemy od 2014 r.

Motyw zrobiony przez doc

Strona zarządzana przez: Adam Plicha

Linki społecznościowe

Gdzie można nas znaleźć?


Facebook Teamspeak Discord

Linki forumowe

Linki z różnego rodzaju podaniami


Podanie o admina Prośba o unbana Propozycja Złóż skargę

Administracja

Oni odpowiedzą na Twoje pytania ;)


×
×
  • Dodaj nową pozycję...