PHP Code:
#include <amxmodx>
#include <engine>
#define PLUGIN "Fly"
#define VERSION "1.0"
#define AUTHOR "Stereo"
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_PreThink(id)
{
if( is_user_alive(id) )
{
new Float:fAim[3]
VelocityByAim(id , 250 , fAim)
if( !(get_user_button(id) & IN_JUMP) )
set_user_velocity(id, fAim)
}
return PLUGIN_CONTINUE
}