AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check - Player is in the air. (https://forums.alliedmods.net/showthread.php?t=215406)

FromTheFuture 05-07-2013 13:28

Check - Player is in the air.
 
Hi.
I need to check if the player is in the air one time.
Don't know how to release it.

Think about this:
PHP Code:

pev(idpev_flags) & FL_ONGROUND 


ConnorMcLeod 05-07-2013 13:44

Re: Check - Player is in the air.
 
You may have to use instead :

Code:
const FL_ONGROUND2 = FL_ONGROUND | FL_PARTIALGROUND | FL_INWATER | FL_CONVEYOR | FL_FLOAT

FromTheFuture 05-07-2013 14:11

Re: Check - Player is in the air.
 
I checked so and it work in water too:
PHP Code:

if(!(pev(pIDpev_flags) & FL_ONGROUND))    
{
        
show_dhudmessage(pID"You are is in the Air." )
}
else
{
//in water, on ground, etc..




All times are GMT -4. The time now is 10:50.

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