View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-12-2009 , 14:50   Re: Blocking jumping
Reply With Quote #16

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

#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin("No Jump"VERSION"ConnorMcLeod")

    
RegisterHam(Ham_Player_Jump"player""Player_Jump")
}

public 
Player_Jump(id)
{
    static 
iOldbuttons iOldbuttons entity_get_int(idEV_INT_oldbuttons)
    if( !(
iOldbuttons IN_JUMP) )
    {
        
entity_set_int(idEV_INT_oldbuttonsiOldbuttons IN_JUMP)
        return 
HAM_HANDLED
    
}
    return 
HAM_IGNORED

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-12-2009 at 14:52.
ConnorMcLeod is offline