AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Remove transparency? (https://forums.alliedmods.net/showthread.php?t=326423)

Stefanos 07-30-2020 14:51

Remove transparency?
 
can transparency be removed from this semiclip :) ?

https://forums.alliedmods.net/showth...02#post1020602

Stefanos 07-30-2020 14:51

Re: Remove transparency?
 
or even better, transparency works for team, but for non team does not work ?

OciXCrom 07-30-2020 16:38

Re: Remove transparency?
 
Remove this:

Code:

static*Float:flDistance
********flDistance*=*entity_range(id,*iEnt)
********if(*flDistance*<*512.0*)
********{
************set_es(es,*ES_RenderMode,*kRenderTransAlpha)
************set_es(es,*ES_RenderAmt,*floatround(flDistance)/2)
********}


Stefanos 07-30-2020 23:30

Re: Remove transparency?
 
semiclip.sma(8) : error 020: invalid symbol name ""

when i tried to compile

fysiks 07-30-2020 23:56

Re: Remove transparency?
 
Attach the new file and we can help resolve the issue.

Stefanos 07-31-2020 08:03

Re: Remove transparency?
 
that is the smae file that i gave link.

OciXCrom 07-31-2020 08:16

Re: Remove transparency?
 
The file compiles just fine, so post your code after you made the changes.

Moody92 07-31-2020 08:18

Re: Remove transparency?
 
PHP Code:

#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

new const VERSION[] = "0.7.0"

const MAX_PLAYERS 32

new g_iPlayers[MAX_PLAYERS], g_iNumg_iPlayeri
new const g_szAliveFlags[] = "a"
#define RefreshPlayersList()    get_players(g_iPlayers, g_iNum, g_szAliveFlags)

public plugin_init()
{
    
register_plugin("Semiclip"VERSION"ConnorMcLeod")

    
register_forward(FM_AddToFullPack"FM_client_AddToFullPack_Post"1)

    
RegisterHam(Ham_Player_PreThink"player""Ham_CBasePlayer_PreThink_Post"1)
}

public 
FM_client_AddToFullPack_Post(eseiEntidhostflagsplayerpSet)
{
    if( 
player && id != iEnt && get_orig_retval() && is_user_alive(id) )
    {
        
set_es(esES_SolidSOLID_NOT)

    }
}

public 
Ham_CBasePlayer_PreThink_Post(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
id != g_iPlayer )
        {
            
set_pev(g_iPlayerpev_solidSOLID_NOT)
        }
    }
}

public 
client_PostThink(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
g_iPlayer != id )
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
        }
    }



Stefanos 07-31-2020 08:18

Re: Remove transparency?
 
i tried to compile even a default plugin and its same error could you please send me amxx ?

compiler\clipsemi.dat(8) : error 020: invalid symbol name ""

Stefanos 07-31-2020 08:19

Re: Remove transparency?
 
same error before and after editing for trasparency


All times are GMT -4. The time now is 21:05.

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