From my Aim Freeze plugin :
Code:
#include < amxmodx >
#include < hamsandwich >
public plugin_init( )
{
RegisterHam( Ham_Player_Jump , "player" , "Player_Jump" , false )
}
public Player_Jump( id )
{
if( is_user_frozen( id ) && !get_pcvar_num( pCvarAllowJump ) )
{
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
__________________