AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Color Code Of Golden Color (https://forums.alliedmods.net/showthread.php?t=318384)

DON KHAN 1 08-28-2019 16:00

Color Code Of Golden Color
 
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

Relaxing 08-28-2019 16:17

Re: Color Code Of Golden Color
 
So where's the script?

DON KHAN 1 08-28-2019 16:19

Re: Color Code Of Golden Color
 
oh sorry but i updated code by myself check this n tell if it will work please :)

OciXCrom 08-28-2019 16:22

Re: Color Code Of Golden Color
 
google.com -> rgb color wheel

DON KHAN 1 08-28-2019 16:28

Re: Color Code Of Golden Color
 
Quote:

Originally Posted by OciXCrom (Post 2665126)
google.com -> rgb color wheel

thank you for quick reply but can u check code that i posted by adding HUD_COLOR? will it work?

LearninG 08-28-2019 16:46

Re: Color Code Of Golden Color
 
PHP Code:

set_user_rendering(idkRenderFxGlowShell255255 ,0kRenderNormal16


thEsp 08-28-2019 16:46

Re: Color Code Of Golden Color
 
Of course not. How are you expecting it to work with 2 rgb params?

DON KHAN 1 08-28-2019 16:54

Re: Color Code Of Golden Color
 
Quote:

Originally Posted by LearninG (Post 2665131)
PHP Code:

set_user_rendering(idkRenderFxGlowShell255255 ,0kRenderNormal16


thank you for answer & ThEsp you too


All times are GMT -4. The time now is 17:15.

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