View Single Post
ChileScripting
BANNED
Join Date: Jan 2013
Old 06-16-2013 , 23:28   Re: Saber la config de 1 tecla
#22

Quote:
Originally Posted by Especialista View Post
no creo que esto te ayude, pero solo estas cosas puedes ver si esta usando/apretando

em no creo que te sirva.

Code:
#define IN_ATTACK      (1<<0)
#define IN_JUMP   (1<<1)
#define IN_DUCK   (1<<2)
#define IN_FORWARD    (1<<3)
#define IN_BACK   (1<<4)
#define IN_USE      (1<<5)
#define IN_CANCEL      (1<<6)
#define IN_LEFT   (1<<7)
#define IN_RIGHT        (1<<8)
#define IN_MOVELEFT  (1<<9)
#define IN_MOVERIGHT        (1<<10)
#define IN_ATTACK2    (1<<11)
#define IN_RUN      (1<<12)
#define IN_RELOAD      (1<<13)
#define IN_ALT1   (1<<14)
#define IN_SCORE        (1<<15)
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>

#define PLUGIN "Check Teclas"
#define VERSION "1.0"
#define AUTHOR "Especialista"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
check_teclas(id)
{
    static 
botonboton get_user_button(id)
    
    if(
boton IN_USE)
    {
        
client_print(idprint_chat"Estas usando la tecla 'E'")
    }

Tu codigo es un fail por que si el user tiene configurado diferente el teclado tu plugin se va a la mierda
ChileScripting is offline