Raised This Month: $ Target: $400
 0% 

get_players work of both teams


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-15-2010 , 18:39   Re: get_players work of both teams
Reply With Quote #8

Quote:
Originally Posted by kostov View Post
This is SemiClip Deathrun Manager by Xpaw. I want to do only work between players in teams rather than between teams

PHP Code:
#include <amxmodx>
#include <fakemeta>

new g_iSemiClip[33]

public 
plugin_init()
{
    
register_plugin("""""")
    
    
register_forwardFM_StartFrame,    "FwdStartFrame");
    
register_forwardFM_AddToFullPack,    "FwdFullPack",   );
}

public 
FwdFullPackeseenthostflagsplayerpSet ) {
    if( 
player && g_iSemiClipent ] && g_iSemiCliphost ] ) {
        
set_esesES_SolidSOLID_NOT );
        
set_esesES_RenderModekRenderTransAlpha );
        
set_esesES_RenderAmt30 );}
    return 
FMRES_IGNORED;
}

public 
FwdStartFrame(id) {
    static 
iPlayers[32], iNumiPlayeriPlayer2ij;
    
get_players(iPlayersiNum"ache""CT")
    
arrayset(g_iSemiClip032);
    if(
iNum <= 1) return FMRES_IGNORED;
    for(
0iNumi++) {
        
iPlayer iPlayers];
        for(
0iNumj++) {
            
iPlayer2 iPlayers];
            if(
iPlayer == iPlayer2)
                continue;
            if(
g_iSemiClipiPlayer ] && g_iSemiClipiPlayer2 ] )
                continue;
            if(
fm_entity_rangeiPlayeriPlayer2 ) < 128) {
                
g_iSemiClipiPlayer ]    = true;
                
g_iSemiClipiPlayer2 ]    = true;}}}
    for(
0iNumi++) {
        
iPlayer iPlayers[i];
        
set_pev(iPlayerpev_solidg_iSemiClipiPlayer ] ? SOLID_NOT SOLID_SLIDEBOX);}
    return 
FMRES_IGNORED;
}

stock Float:fm_entity_range(ent1ent2){
    new 
Float:origin1[3], Float:origin2[3]
    
pev(ent1pev_originorigin1)
    
pev(ent2pev_originorigin2)
    return 
get_distance_f(origin1origin2)

So your saying you don't want CT's to semiclip through T's?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 14:49.


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