Raised This Month: $51 Target: $400
 12% 

CT can't see TE when freezetime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hnskind2007
Junior Member
Join Date: Dec 2020
Old 12-07-2020 , 06:16   CT can't see TE when freezetime
Reply With Quote #1

Hey, i seen in some hns servers that CT can't see TE during the freezetime. it's like alpha screenfade.

Here is example code:
PHP Code:
public Event_Post_Freezetime() {
    new 
iPlayers[32], iNumiColor[3], iAlpha
    get_players
(iPlayersiNum"ae""CT")
    
g_bFreezePeriod false
    
for(--iNumiNum>=0iNum--)    {
        
get_pcvar_color_alpha(g_ScreenColoriColoriAlpha)
        
UTIL_ScreenFade(iPlayers[iNum], iColor2.0_iAlpha)

get_pcvar_color_alphag_pCvar iColor[] , &iAlpha=) {
    if(
war) {
        if(!
hnsru_paused) {
            new 
szColor[13]
            if( 
get_pcvar_string(g_pCvarszColorcharsmax(szColor)) != charsmax(szColor) )
            {
                
abort(AMX_ERR_GENERAL"Color cvar must be 12 chars, format ^"RRRGGGBBBAAA^"")
            }
            
iColor[Red] = parse_colorszColor)
            
iColor[Green] = parse_colorszColor)
            
iColor[Blue] = parse_colorszColor)
            
iAlpha parse_colorszColor)
        }
    }
}

parse_color(szColor[], iStart) {
    return 
100 szColor[iStart] + 10 szColor[iStart+1] + szColor[iStart+2] - 5328


Last edited by hnskind2007; 12-08-2020 at 06:19.
hnskind2007 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 19:07.


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