View Single Post
lexzor
Veteran Member
Join Date: Nov 2020
Old 05-22-2023 , 05:51   Re: new error message
Reply With Quote #7

Quote:
Originally Posted by metal_upa View Post
I believe the 2nd parameter in client_print_color(x, x) is out of bound,
the code
what?

https://www.amxmodx.org/api/amxmodx/client_print_color

do you guys even read the documentation for a native?

second parameter it is used for different team color messages

if you send a message through client_print_color and the second parameter is print_team_default, the team color will be red for players that are playing at tero and blue for ct.

PHP Code:
enum
{
    
print_team_default 0,
    
print_team_grey = -1,
    
print_team_red = -2,
    
print_team_blue = -3,
}; 
Code:
Usage examples: client_print_color(id, print_team_red, "^4Green ^3Red ^1Default") client_print_color(id, id2, "^4Green ^3id2's team color, ^1Default")

Last edited by lexzor; 05-22-2023 at 05:54.
lexzor is offline