Raised This Month: $276 Target: $400
 69% 

Remove transparency?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stefanos
Senior Member
Join Date: May 2020
Old 07-30-2020 , 14:51   Remove transparency?
Reply With Quote #1

can transparency be removed from this semiclip ?

https://forums.alliedmods.net/showth...02#post1020602
Stefanos is offline
Stefanos
Senior Member
Join Date: May 2020
Old 07-30-2020 , 14:51   Re: Remove transparency?
Reply With Quote #2

or even better, transparency works for team, but for non team does not work ?
Stefanos is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-30-2020 , 16:38   Re: Remove transparency?
Reply With Quote #3

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)
********}
__________________

Last edited by OciXCrom; 07-30-2020 at 16:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Stefanos
Senior Member
Join Date: May 2020
Old 07-30-2020 , 23:30   Re: Remove transparency?
Reply With Quote #4

semiclip.sma( : error 020: invalid symbol name ""

when i tried to compile
Stefanos is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-30-2020 , 23:56   Re: Remove transparency?
Reply With Quote #5

Attach the new file and we can help resolve the issue.
__________________
fysiks is offline
Stefanos
Senior Member
Join Date: May 2020
Old 07-31-2020 , 08:03   Re: Remove transparency?
Reply With Quote #6

that is the smae file that i gave link.
Stefanos is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-31-2020 , 08:16   Re: Remove transparency?
Reply With Quote #7

The file compiles just fine, so post your code after you made the changes.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 07-31-2020 , 08:18   Re: Remove transparency?
Reply With Quote #8

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)
        }
    }

Moody92 is offline
Stefanos
Senior Member
Join Date: May 2020
Old 07-31-2020 , 08:18   Re: Remove transparency?
Reply With Quote #9

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

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

Last edited by Stefanos; 07-31-2020 at 08:19.
Stefanos is offline
Stefanos
Senior Member
Join Date: May 2020
Old 07-31-2020 , 08:19   Re: Remove transparency?
Reply With Quote #10

same error before and after editing for trasparency

Last edited by Stefanos; 07-31-2020 at 08:19.
Stefanos is offline
Reply


Thread Tools
Display Modes

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 01:32.


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