Thread: help please. :)
View Single Post
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 10-08-2011 , 06:57   Re: help please. :)
#2

PHP Code:
#include <amxmodx>
#include <engine>


#define PLUGIN "Fly"
#define VERSION "1.0"
#define AUTHOR "Stereo"


public plugin_init()
register_plugin(PLUGINVERSIONAUTHOR)

public 
client_PreThink(id)
{
if( 
is_user_alive(id) )
{
new 
Float:fAim[3] , Float:fVelocity[3];
VelocityByAim(id 250 fAim);

if((
get_user_button(id) & IN_JUMP) && PlayerClassCT[id] == 2)
{
fVelocity[0] = fAim[0];
fVelocity[1] = fAim[1];
fVelocity[2] = fAim[2];

set_user_velocity(id fVelocity);
}
}
return 
PLUGIN_CONTINUE;

?
__________________

anakin_cstrike is offline