Raised This Month: $32 Target: $400
 8% 

Solved Detect if the smoke has opened in the air


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wilianmaique
BANNED
Join Date: Nov 2016
Old 06-21-2019 , 21:11   Detect if the smoke has opened in the air
Reply With Quote #1

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


Last edited by wilianmaique; 06-22-2019 at 18:04. Reason: discovered
wilianmaique is offline
Send a message via Skype™ to wilianmaique
Reply


Thread Tools
Display Modes

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 02:18.


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