Raised This Month: $ Target: $400
 0% 

Need help, semiclip.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-11-2010 , 10:48   Re: Need help, semiclip.
Reply With Quote #5

I'm sorry for posting repeatedly but this semiclip part is now the only thing that keeps me away from finishing a plugin and also I have been working on these two functions for over a day now.
PHP Code:
new bool:Respawning[33] = falsebool:g_NoSolid[33] = false
public plugin_init()
{
    
register_forwardFM_StartFrame,    "FwdStartFrame");
    
register_forwardFM_AddToFullPack,    "FwdFullPack",   );
}

public 
FwdFullPackeseenthostflagsplayerpSet ) {

    if( 
player && g_NoSolident ] && g_NoSolidhost ] ) {
        
set_esesES_SolidSOLID_NOT );
        
set_esesES_RenderModekRenderTransAlpha );
        
set_esesES_RenderAmt85 );
    }
    
    return 
FMRES_IGNORED;
}

public 
FwdStartFrame( ) {

    static 
iPlayers32 ], iNumiPlayeriPlayer2ij;
    
get_playersiPlayersiNum"ah" );
    
    
arraysetg_NoSolid032 );
    
    if( 
iNum <= )
        return 
FMRES_IGNORED;
    
    for( 
0iNumi++ ) {
        
iPlayer iPlayers];
        
        for( 
0iNumj++ ) {
            
iPlayer2 iPlayers];
            
            if( 
iPlayer == iPlayer2 )
                continue;
            
            if( 
g_NoSolidiPlayer ] && g_NoSolidiPlayer2 ])
                continue;
                
            if(
Respawning[iPlayer] || Respawning[iPlayer2])
                continue;
            else                            
//else part not actually needed
                
break;
            
            if( 
entity_rangeiPlayeriPlayer2 ) < 100 ) {
                
g_NoSolidiPlayer ]    = true;
                
g_NoSolidiPlayer2 ]    = true;
            }
        }
    }
    
    for( 
0iNumi++ ) {
        
iPlayer iPlayers];
        
        
set_peviPlayerpev_solidg_NoSolidiPlayer ] ? SOLID_NOT SOLID_SLIDEBOX );
    }
    
    return 
FMRES_IGNORED;

Without if(Respawning[iPlayer] || Respawning[iPlayer2]) part everything is working, everyone has semiclip, but with Respawning check nothing is working.
IDK, where could be the problem.
t3hNox 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 21:57.


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