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

Solved REQ vip glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mousesports
Senior Member
Join Date: Oct 2010
Old 03-25-2020 , 14:53   REQ vip glow
Reply With Quote #1

Good evening,
I need a glow plugin for those with flag vip. Red for terrorist and blue for counter. Thanks !
__________________

Last edited by mousesports; 03-26-2020 at 05:44.
mousesports is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 03-26-2020 , 04:27   Re: REQ vip glow
Reply With Quote #2

You have to test

EDIT:
PHP Code:
#include <amxmodx>  
#include <amxmisc>  
#include <cstrike>   
#include <fun>  
#include <hamsandwich>  

#define PLUGIN "VIP Glow"  
#define VERSION "1.0"  
#define AUTHOR "Author"  

new const VIP_ACCESS ADMIN_LEVEL_H 

public plugin_init()   
{  
    
register_plugin(PLUGINVERSIONAUTHOR)  
    
RegisterHam(Ham_Spawn"player""PlayerPostSpawn"1);  
}  

public 
PlayerPostSpawn(id)  
{      
    if(
is_user_alive (id) && get_user_flags(id) & VIP_ACCESS)  
        
set_user_rendering(idkRenderFxGlowShellcs_get_user_team(id) == CS_TEAM_CT 2550cs_get_user_team(id) == CS_TEAM_T 255 0kRenderNormal16)


Last edited by alferd; 03-26-2020 at 05:25.
alferd is offline
mousesports
Senior Member
Join Date: Oct 2010
Old 03-26-2020 , 04:33   Re: REQ vip glow
Reply With Quote #3

Thank you ! Im going to test it .


EDIT: not working
__________________

Last edited by mousesports; 03-26-2020 at 04:59.
mousesports is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 03-26-2020 , 05:19   Re: REQ vip glow
Reply With Quote #4

Quote:
Originally Posted by mousesports View Post
Thank you ! Im going to test it .


EDIT: not working
Please try again
alferd is offline
mousesports
Senior Member
Join Date: Oct 2010
Old 03-26-2020 , 05:44   Re: REQ vip glow
Reply With Quote #5

Thank you ! I tested on terrorist and its working
__________________
mousesports is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-26-2020 , 09:10   Re: REQ vip glow
Reply With Quote #6

It's more efficient setting a glow on a player when he joins a team

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>

#define PLUGIN "Glow Players"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_event("TeamInfo""TeamInfo""a");
}

public 
TeamInfo()
{
    new 
id;
    
id read_data(1);
    
    if(
get_user_flags(id)  & ADMIN_LEVEL_H)
    {
        new 
szTeam[2];
        
read_data(2szTeamcharsmax(szTeam));
    
        switch(
szTeam[0])
        {
            case 
'T'
            {
            
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25);
            }
            case 
'C'
            {
                
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25);
            }
        
        }
    }

__________________

Last edited by Napoleon_be; 03-26-2020 at 19:03.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
mousesports
Senior Member
Join Date: Oct 2010
Old 03-26-2020 , 11:21   Re: REQ vip glow
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
It's more efficient setting a glow on a player when he joins a team

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>

#define PLUGIN "Glow Players"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_event("TeamInfo""TeamInfo""a");
}

public 
TeamInfo()
{
    new 
idszTeam[2];
    
    
id read_data(1);
    
read_data(2szTeamcharsmax(szTeam));
    
    switch(
szTeam[0])
    {
        case 
'T'
        {
            
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25);
        }
        case 
'C'
        {
            
set_user_rendering(idkRenderFxGlowShell25500kRenderNormal25);
        }
        
    }

Thank you ! This is for everyone, first one its perfect .. its for what i ask .
__________________

Last edited by mousesports; 03-26-2020 at 12:50.
mousesports is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-26-2020 , 12:56   Re: REQ vip glow
Reply With Quote #8

Ofcourse it works, i'm just thinking about optimization.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
mousesports
Senior Member
Join Date: Oct 2010
Old 03-26-2020 , 14:06   Re: REQ vip glow
Reply With Quote #9

Quote:
Originally Posted by Napoleon_be View Post
Ofcourse it works, i'm just thinking about optimization.
You did it for everyone ... I ask ing for vip only ..
__________________
mousesports is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 03-26-2020 , 14:09   Re: REQ vip glow
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define VIP ADMIN_LEVEL_H
#define PLUGIN "Glow VIP"
#define VERSION "v0.1"
#define AUTHOR "nutu."


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
    
}
public 
player_spawn(id
{
    if(
is_user_alive(id))
    {
        if(
get_user_flags(id) & VIP)
        {
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_CTset_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
                    case 
CS_TEAM_Tset_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
                }
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang9242\\ f0\\ fs16 \n\\ par }
*/ 
this should do the trick
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 03:47.


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