put this in the files when you're compiling them :
Code:
/* Sets the velocity of an entity */
stock set_user_velocity(id,vel[3]) {
new Float:Fvel[3]
IVecFVec(vel,Fvel)
entity_set_vector(id, EV_VEC_velocity, Fvel)
}
/* Gets the velocity of an entity */
stock get_user_velocity(id,vel[3]) {
new Float:Fvel[3]
entity_get_vector(id, EV_VEC_velocity, Fvel)
FVecIVec(Fvel,vel)
}
got it from here:
http://forums.alliedmods.net/showthread.php?t=756
__________________