Raised This Month: $ Target: $400
 0% 

get_players work of both teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-15-2010 , 15:03   Re: get_players work of both teams
Reply With Quote #1

Quote:
Originally Posted by kostov View Post
I want to work only between players from both teams and not between the two teams
how do you mean?
The code i gave you check works with both teams, then checks the teams in the loop
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
kostov
Member
Join Date: Jan 2010
Location: Bulgaria, Sofia
Old 06-15-2010 , 15:07   Re: get_players work of both teams
Reply With Quote #2

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)

kostov is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-15-2010 , 18:39   Re: get_players work of both teams
Reply With Quote #3

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
kostov
Member
Join Date: Jan 2010
Location: Bulgaria, Sofia
Old 06-16-2010 , 02:55   Re: get_players work of both teams
Reply With Quote #4

Quote:
Originally Posted by GXLZPGX View Post
So your saying you don't want CT's to semiclip through T's?
I do not want to work between the teams but between players
kostov is offline
Reply



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