Raised This Month: $ Target: $400
 0% 

Solved fly plugin help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vres
Junior Member
Join Date: Dec 2023
Location: Turkey
Old 01-06-2024 , 11:24   fly plugin help
#1

Can you edit this code? It should function like a hook plugin, for example, with a command like bind c +fly

And if it's not too much trouble for you, could you also add amx_givefly and amx_takefly features? The fly ability given to the player should be permanent and should not be removed when they leave the server.

thank you

Code:
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
}

Last edited by DarkDeviL; 01-08-2024 at 19:07. Reason: Restore to previous version.
vres is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode