#include <amxmodx>
#include <fakemeta>
public plugin_init()
register_forward(FM_PlayerPreThink, "PlayerPreThink")
public PlayerPreThink(id)
{
if(!is_user_alive(id))
return;
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
return;
set_pev(id, pev_fuser2, 0.0)
if(pev(id, pev_button) & 2)
{
static flags;
flags = pev(id, pev_flags);
if(flags & FL_WATERJUMP)
return;
if(pev(id, pev_waterlevel) >= 2)
return;
if(!(flags & FL_ONGROUND))
return;
new Float:velocity[3];
pev(id, pev_velocity, velocity)
velocity[2] += 250.0;
set_pev(id, pev_velocity, velocity)
set_pev(id, pev_gaitsequence, 6)
}
}
#include <fakemeta>
public plugin_init()
register_forward(FM_PlayerPreThink, "PlayerPreThink")
public PlayerPreThink(id)
{
if(!is_user_alive(id))
return;
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
return;
set_pev(id, pev_fuser2, 0.0)
if(pev(id, pev_button) & 2)
{
static flags;
flags = pev(id, pev_flags);
if(flags & FL_WATERJUMP)
return;
if(pev(id, pev_waterlevel) >= 2)
return;
if(!(flags & FL_ONGROUND))
return;
new Float:velocity[3];
pev(id, pev_velocity, velocity)
velocity[2] += 250.0;
set_pev(id, pev_velocity, velocity)
set_pev(id, pev_gaitsequence, 6)
}
}