Raised This Month: $ Target: $400
 0% 

Solved [HELP] Detect if Map has Water on Start


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hellmonja
Senior Member
Join Date: Oct 2015
Old 06-02-2020 , 14:21   Re: [HELP] Detect if Map has Water on Start
Reply With Quote #3

Like this?
PHP Code:
register_forward(FM_KeyValue"Foward_KeyValue" );
...

public 
Foward_KeyValue ( const EntId, const KvdId )
{
    if ( 
pev_valid EntId ) )
    {
        
szKeyClassName16 ];
        
get_kvdKvdIdKV_ClassNameszKeyClassNamecharsmaxszKeyClassName ) );
        
        if( 
equalszKeyClassName"func_water" ) > 0)
        {
            
pause("d");
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;

__________________
hellmonja 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 16:50.


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