Raised This Month: $ Target: $400
 0% 

Color Code Of Golden Color


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-28-2019 , 16:00   Color Code Of Golden Color
Reply With Quote #1

hi coders.

i am using this plugin which allows to glow a color on vip.
i want to make a golden color for both teams to glow.
can anybody help me out?

i got the code of golden color but i was having problem to compile so i used a HUD_COLOR

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_CT 255 0kRenderNormal16)

New Which I Edited For Color

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 
// Color For VIP Glow
new const HUD_COLOR[3] = {25525585}

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 HUD_COLOR[1], cs_get_user_team(id) == CS_TEAM_CT ?  HUD_COLOR[1] : 0kRenderNormal16)

thanks in advance
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 08-28-2019 at 16:24.
DON KHAN 1 is offline
 



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 17:15.


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