AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I want (Can not see the teammates's plugins) (https://forums.alliedmods.net/showthread.php?t=162955)

lovealan188 07-25-2011 01:28

I want (Can not see the teammates's plugins)
 
I want Can not see the teammates's plugins
help~~

Who can write...

Aykay 07-25-2011 02:16

Re: I want (Can not see the teammates's plugins)
 
https://forums.alliedmods.net/showpo...40&postcount=2

Search.

Don't double post, this is the wrong section, too.

lovealan188 07-25-2011 05:23

Re: I want (Can not see the teammates's plugins)
 
But I do not want the command

lovealan188 07-25-2011 05:23

Re: I want (Can not see the teammates's plugins)
 
AUTO..........

2reason2kill 07-25-2011 07:49

Re: I want (Can not see the teammates's plugins)
 
Quote:

Originally Posted by Aykay (Post 1517897)
https://forums.alliedmods.net/showpo...40&postcount=2

Search.

Don't double post, this is the wrong section, too.


Exolent[jNr] 07-25-2011 10:18

Re: I want (Can not see the teammates's plugins)
 
PHP Code:

#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

#pragma semicolon 1

// set your true/false default values here
new bool:g_bPlayerInvisible true;
new 
bool:g_bWaterInvisible true;

new 
bool:g_bWaterEntity[1386], bool:g_bWaterFound;

new 
g_iSpectatedId[33];

public 
plugin_init( )
{
    
register_plugin"Invis""1.4""SchlumPF");
    
    
register_forwardFM_PlayerPreThink"fwdPlayerPreThink_Pre");
    
register_forwardFM_AddToFullPack"fwdAddToFullPack_Post");
    
    
RegisterHamHam_Spawn"player""hamSpawnPlayer_Post");
}

public 
plugin_cfg( )
{
    
// find all water entitys to make AddToFullPack use less cpu
    
new ent engfuncEngFunc_FindEntityByString, -1"classname""func_water" );
    while( 
ent )
    {
        if( !
g_bWaterFound )
        {
            
g_bWaterFound true;
        }

        
g_bWaterEntity[ent] = true;
        
        
ent engfuncEngFunc_FindEntityByStringent"classname""func_water" );
    }
}

public 
fwdPlayerPreThink_Preplr )
{
    if( !
is_user_aliveplr ) )
    {
        
g_iSpectatedId[plr] = pevplrpev_iuser2 );
    }
}

public 
fwdAddToFullPack_Postes_handleeenthosthostflagsplayerpset )
{
    if( 
player )
    {
        if( 
g_bPlayerInvisible && host != ent )
        {
            if( 
ent != g_iSpectatedId[host] && cs_get_user_teamhost ) == cs_get_user_teament ) )
            {
                
set_eses_handleES_Origin, { 999999999.0999999999.0999999999.0 } );
                
set_eses_handleES_RenderModekRenderTransAlpha );
                
set_eses_handleES_RenderAmt);
            }
        }
    }
    else if( 
g_bWaterInvisible )
    {
        if( 
g_bWaterEntity[ent] )
        {
            
set_eses_handleES_EffectsEF_NODRAW );
        }
    }
}

public 
hamSpawnPlayer_Postplr )
{
    
g_iSpectatedId[plr] = 0;
}

public 
client_connectplr )
{
    
g_iSpectatedId[plr] = 0;




All times are GMT -4. The time now is 01:10.

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