Raised This Month: $32 Target: $400
 8% 

CT glow (blue) when they have defuse or buy it during freezetime


Post New Thread Reply   
 
Thread Tools Display Modes
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-24-2018 , 18:35   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #11

Quote:
Originally Posted by shauli View Post
How do terrorists buy/get a defuser? anyway, try this:
PHP Code:
#include <amxmodx>
#include <cstrike> 
#include <fun> 

#if !defined MAX_PLAYERS 
    #define MAX_PLAYERS    32 
#endif 

new g_bFreezeTime

public 
plugin_init( ) 

    
register_plugin"Defuser Glow""1.0""shauli" ); 
     
    new 
szMapName]; 
    
get_mapnameszMapNamecharsmaxszMapName ) ) 

    if( 
containiszMapName"de_" ) != 
    { 
        
set_fail_state"Not a bomb map, plugin disabled itself." ); 
        return; 
    } 

    
register_event"StatusIcon""fwdStatusIcon""be""1=1""1=2""2=defuser" ); 
    
register_event"HLTV""fwdNewRound""a""1=0""2=0" ); 
    
register_logevent"fwdRoundStart"2"1=Round_Start" ); 


public 
fwdStatusIconid 

    if( 
g_bFreezeTime && is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_CT 
        
set_user_renderingidkRenderFxGlowShell00255 kRenderNormal40 ); 


public 
fwdNewRound( ) 

    
g_bFreezeTime true


public 
fwdRoundStart( ) 

    new 
playersMAX_PLAYERS ], pnum
    
get_playersplayerspnum"a" ); 

    for( new 
0pnumi++ ) 
        
set_user_renderingplayers], kRenderFxNone00); 

    
g_bFreezeTime false

they don't buy or get defuse, but for some reason, they glow sometimes, dunno why, i will try the plugin to see if there are any bugs, thanks
tarsisd2 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 05:09.


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