Thread: [Solved] fly plugin help
View Single Post
Uzviseni Bog
Senior Member
Join Date: Jun 2020
Old 01-06-2024 , 15:43   Re: fly plugin help
#4

Quote:
Originally Posted by vres View Post
this is everything

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "me"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	
}

public client_PreThink(id)  
{ 

    if( is_user_alive(id) ) 
    { 
        new Float:fAim[3]
        VelocityByAim(id , 500, fAim)
        
        if( !(get_user_button(id) & IN_JUMP) ) 
            set_user_velocity(id, fAim)
    } 
    return PLUGIN_CONTINUE
}
It already works like this


What do you actually want? Do you want a hook that will be bound with the command 'bind c +fly' instead of 'bind c +hook', and to be given to certain players through a command?
Uzviseni Bog is offline