Raised This Month: $ Target: $400
 0% 

how to execute a function if player is in air?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-31-2020 , 11:38   Re: how to execute a function if player is in air?
Reply With Quote #6

PHP Code:
public client_PreThink(id)
{
    
is_user_in_air(id)
}

public 
is_user_in_air(id)
{
    if(!(
get_entity_flags(id) & FL_ONGROUND))
    {
        
//execute when in air
    
}
    else
    {
        
//execute when on ground
    
}


Last edited by supertrio17; 05-31-2020 at 11:38.
supertrio17 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 17:11.


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