uh...
just a few changes:
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_forward(FM_PlayerPreThink, "fm_playerthink", 1)
}
public fm_playerthink(id)
{
if(!is_user_alive(id)) return FMRES_IGNORED
new Float:speed = get_currentspeed(id)
//what ever
\
return FMRES_IGNORED
}
// stock for getting the current player speed
stock Float:get_currentspeed(id)
{
static Float:vel[3]
pev(id,pev_velocity, vel)
return vector_length(vel)
}
__________________