alka isnt far away.
fakemeta:
Code:
public plugin_init()
{
register_forward(FM_PlayerPreThink, "prethink")
}
public prethink( id )
{
static button,oldbuttons;
button = pev( id, pev_button );
oldbuttons = pev( id, pev_oldbuttons );
if(button & IN_USE && !(oldbuttons & IN_USE))
{
// +use
} else if( oldbuttons & IN_USE && !(button & IN_USE))
{
// -use
}
}
@regalis
your version has the problem that +use will allways be executed as long as it got pressed
__________________