PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fakemeta>
#include < hamsandwich >
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Player_Jump, "player", "OnPlayerJump", 1 );
}
public OnPlayerJump( id )
{
if ( ! is_user_alive( id ) )
return HAM_HANDLED;
set_pev(id, pev_oldbuttons, pev(id, pev_oldbuttons) & ~IN_JUMP)
set_pev(id, pev_fuser2, 0.0)
return HAM_IGNORED;
}
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include < hamsandwich >
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init( )
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Player_Jump, "player", "OnPlayerJump", 1 );
}
public OnPlayerJump( id )
{
if ( ! is_user_alive( id ) )
return HAM_HANDLED;
new iFlags = pev( id, pev_flags )
if( iFlags & FL_WATERJUMP || pev( id, pev_waterlevel ) >= 2 || !( iFlags & FL_ONGROUND ) || !( pev( id, pev_button ) & IN_JUMP ) )
{
return HAM_IGNORED;
}
new Float:fVelocity[ 3 ]
pev( id, pev_velocity, fVelocity );
fVelocity[ 2 ] = 268.328157;
set_pev( id, pev_velocity, fVelocity );
set_pev( id, pev_gaitsequence, 6 );
set_pev(id, pev_frame, 0.0 )
return HAM_IGNORED;
}
__________________