Quote:
Originally Posted by metal_upa
I believe the 2nd parameter in client_print_color(x, x) is out of bound,
the code
PHP Code:
client_print_color(id, position, "%s ^3everyone ^1has teleport to ^3%n. ^1(Origin:%.2f, %.2f, %.2f)", PREFIX, position, origin[0], origin[1], origin[2]);
|
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")