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
Author Message
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-23-2018 , 00:17   CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #1

the title says it all, i saw this idea from someone and liked, i want a plugin that: CT glow (blue) when they have defuse or buy it during freezetime only, this will be cool for my pug server!
tarsisd2 is offline
shauli
Member
Join Date: Jun 2018
Old 08-23-2018 , 09:04   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #2

That's a nice idea. Everyone should see the glow? or only teammates?

Edit: It's already exists, here: https://forums.alliedmods.net/showthread.php?p=894631

Last edited by shauli; 08-23-2018 at 09:06.
shauli is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-23-2018 , 14:58   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #3

Quote:
Originally Posted by shauli View Post
That's a nice idea. Everyone should see the glow? or only teammates?

Edit: It's already exists, here: https://forums.alliedmods.net/showthread.php?p=894631
only cts can see the glow, in blue, whoever got defuse kit and only on freezetime, since is on the freezetime, only ct will be able to see! maybe a red glow for c4 carrier!

the plugin you posted works a bit different from my request, but it's not too hard to edit!

Last edited by tarsisd2; 08-23-2018 at 15:01.
tarsisd2 is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 08-25-2018 , 13:51   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #4

Quote:
Originally Posted by tarsisd2 View Post
only cts can see the glow, in blue, whoever got defuse kit and only on freezetime, since is on the freezetime, only ct will be able to see! maybe a red glow for c4 carrier!

the plugin you posted works a bit different from my request, but it's not too hard to edit!
I don't think you can make glow visible only to certain team.
__________________
Airkish is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-25-2018 , 14:05   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #5

on spawn enemies cant see each other..so no need for that only teammates?
JocAnis is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-25-2018 , 14:29   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #6

Quote:
Originally Posted by Airkish View Post
I don't think you can make glow visible only to certain team.
You can.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-25-2018 , 16:08   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #7

Quote:
Originally Posted by Airkish View Post
I don't think you can make glow visible only to certain team.
it doesn't matter if only team mates sees, the glow will be only during freeze time, so doesn't really matter
tarsisd2 is offline
shauli
Member
Join Date: Jun 2018
Old 08-26-2018 , 10:36   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #8

Quote:
Originally Posted by tarsisd2 View Post
it doesn't matter if only team mates sees, the glow will be only during freeze time, so doesn't really matter
Try this:
PHP Code:
#include <amxmodx>
#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 )
        
set_user_renderingidkRenderFxGlowShell00255 kRenderNormal40 );
}

public 
fwdNewRound( )
{
    
g_bFreezeTime true;
}

public 
fwdRoundStart( )
{
    new 
playersMAX_PLAYERS ], pnum;
    
get_playersplayerspnum"ae""CT" );

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

    
g_bFreezeTime false;

shauli is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 09-24-2018 , 15:43   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #9

Quote:
Originally Posted by shauli View Post
Try this:
PHP Code:
#include <amxmodx>
#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 )
        
set_user_renderingidkRenderFxGlowShell00255 kRenderNormal40 );
}

public 
fwdNewRound( )
{
    
g_bFreezeTime true;
}

public 
fwdRoundStart( )
{
    new 
playersMAX_PLAYERS ], pnum;
    
get_playersplayerspnum"ae""CT" );

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

    
g_bFreezeTime false;

i was using this but i found a bug, sometimes some Terrorists glows blue and doesn't stop after freezetime, and it's a mess for the cts, can anyone fix it?
tarsisd2 is offline
shauli
Member
Join Date: Jun 2018
Old 09-24-2018 , 18:01   Re: CT glow (blue) when they have defuse or buy it during freezetime
Reply With Quote #10

Quote:
Originally Posted by tarsisd2 View Post
i was using this but i found a bug, sometimes some Terrorists glows blue and doesn't stop after freezetime, and it's a mess for the cts, can anyone fix it?
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


Last edited by shauli; 09-24-2018 at 18:02.
shauli 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 12:53.


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