Raised This Month: $ Target: $400
 0% 

[Question] Block E key


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-30-2013 , 01:42   Re: [Question] Block E key
Reply With Quote #3

Should work with buttons, doors, ...
Can't work with vehicles.

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#pragma semicolon 1

#define PLUGIN "No Use @ Round End"
#define VERSION "0.0.1"

#define cm(%0)    ( sizeof(%0) - 1 )

const m_afButtonPressed 246;

new 
HamHook:g_iHhCBasePlayerObjectCaps;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    
DisableHamForwardg_iHhCBasePlayerObjectCaps RegisterHam(Ham_ObjectCaps"player""OnCBasePlayer_ObjectCaps"false) );

    
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0");
    
register_logevent("Event_Round_End"2"1=Round_End");
}

public 
Event_HLTV_New_Round()
{
    
DisableHamForward(g_iHhCBasePlayerObjectCaps);
}

public 
Event_Round_End()
{
    
EnableHamForward(g_iHhCBasePlayerObjectCaps);
}

public 
OnCBasePlayer_ObjectCapsid )
{
    new 
buttons pev(idpev_button);
    if( 
buttons IN_USE )
    {
        
set_pev(idpev_buttonbuttons & ~IN_USE);
    }
    
buttons get_pdata_int(idm_afButtonPressed);
    if( 
buttons IN_USE )
    {
        
set_pdata_int(idm_afButtonPressedbuttons & ~IN_USE);
    }
    return 
HAM_HANDLED;

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode