AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Detect if the smoke has opened in the air (https://forums.alliedmods.net/showthread.php?t=317016)

wilianmaique 06-21-2019 21:11

Detect if the smoke has opened in the air
 
My cod:

but not works.

PHP Code:

#define FL_ONGROUND2 (FL_ONGROUND | FL_PARTIALGROUND | FL_INWATER | FL_CONVEYOR | FL_FLOAT)

register_forward(FM_EmitSound"xFwEmitSound"false)

public 
xFwEmitSound(entchannelsample[])
{
    static 
xEntFlagsxEntFlags pev(entpev_flags)

    if(
equal(sample[8], "sg_explode.wav"))
    {
        if(!(
xEntFlags FL_ONGROUND2))
        {
            
client_print(0print_chat"air")
        }
    
        return 
FMRES_SUPERCEDE
    
}

    return 
FMRES_IGNORED




All times are GMT -4. The time now is 17:19.

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