After I tested other plugins in the end it happened like this:
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define MAX_PLAYERS 32
new g_bAlive[ MAX_PLAYERS + 1 ]
public plugin_init()
{
register_plugin( "Auto Bhop", "0.0.1", "ConnorMcLeod" )
RegisterHam( Ham_Spawn, "player", "Check_Alive", 1 )
RegisterHam( Ham_Killed, "player", "Check_Alive", 1 )
RegisterHam( Ham_Player_Jump, "player", "Player_Jump" )
}
public Check_Alive( id )
{
g_bAlive[ id ] = is_user_alive( id )
}
public Player_Jump( id )
{
if( !g_bAlive[ id ]
|| entity_get_int( id, EV_INT_waterlevel ) >= 2
|| !( entity_get_int( id, EV_INT_flags ) & FL_ONGROUND ) )
{
return
}
static iOldButtons ; iOldButtons = entity_get_int( id, EV_INT_oldbuttons )
if( iOldButtons & IN_JUMP )
{
entity_set_int( id, EV_INT_oldbuttons, iOldButtons & ~IN_JUMP )
static Float:fVelocity[ 3 ]
entity_get_vector( id, EV_VEC_velocity, fVelocity )
fVelocity[ 2 ] = 268.32815729997476356910084024775
entity_set_vector( id, EV_VEC_velocity, fVelocity )
}
}
I wan't you just to have a look and see how it is.