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

Add green + teamcolors support


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
polas19
Junior Member
Join Date: Jul 2021
Old 10-22-2021 , 10:18   Add green + teamcolors support
Reply With Quote #1

solved.

Last edited by polas19; 10-25-2021 at 08:48.
polas19 is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 10-22-2021 , 11:06   Re: Add green + teamcolors support
Reply With Quote #2

Look at, amxmodx/scripting/includes folder in amxxconst.inc, AMXX 1.19, 1,10 Already has it's own chat colors included.
PHP Code:
/**
 * Color types for client_print_color()
 */
enum
{
    
print_team_default 0,
    
print_team_grey = -1,
    
print_team_red = -2,
    
print_team_blue = -3,
}; 
You need to change
PHP Code:
  client_print(idprint_chat"[AFK] %L"LANG_PLAYER"AFK_KICK_WARN"floatround(FREQ_AFK_CHECK) * (MAX_WARN g_iWarn[id])) 
to
PHP Code:
client_print_color(idprint_team_default"[AFK] %L"LANG_PLAYER"AFK_KICK_WARN"floatround(FREQ_AFK_CHECK) * (MAX_WARN g_iWarn[id])) 
And then u can use in line:
^3 = print_team_default
^2 = print_team_red
^1 = print_team_blue
^4 = print_team_gray
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 10-22-2021 at 11:12.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
polas19
Junior Member
Join Date: Jul 2021
Old 10-22-2021 , 11:23   Re: Add green + teamcolors support
Reply With Quote #3

Quote:
Originally Posted by CryWolf View Post
Look at, amxmodx/scripting/includes folder in amxxconst.inc, AMXX 1.19, 1,10 Already has it's own chat colors included.
PHP Code:
/**
 * Color types for client_print_color()
 */
enum
{
    
print_team_default 0,
    
print_team_grey = -1,
    
print_team_red = -2,
    
print_team_blue = -3,
}; 
You need to change
PHP Code:
  client_print(idprint_chat"[AFK] %L"LANG_PLAYER"AFK_KICK_WARN"floatround(FREQ_AFK_CHECK) * (MAX_WARN g_iWarn[id])) 
to
PHP Code:
client_print_color(idprint_team_default"[AFK] %L"LANG_PLAYER"AFK_KICK_WARN"floatround(FREQ_AFK_CHECK) * (MAX_WARN g_iWarn[id])) 
And then u can use in line:
^3 = print_team_default
^2 = print_team_red
^1 = print_team_blue
^4 = print_team_gray
It worked.
thanks!

Last edited by polas19; 10-25-2021 at 08:48.
polas19 is offline
Old 10-22-2021, 11:33
polas19
This message has been deleted by polas19.
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 00:47.


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