|
Junior Member
Join Date: Sep 2022
Location: Kathmandu, Nepal
|
06-02-2024
, 08:11
Re: Some questions about color codes
|
#2
|
Quote:
Originally Posted by Twenty_Cat
I want to change the colors in this code, I think it's hexadecimal, but I don't understand x04, x07, what are they again? I tried to change the color but it didn't work, can someone explain it for me?
users[client].exper_num = userEx - (lv * 10);
PrintToChatAll("\x04 players \x07FF0000%s \x04 Level up %d", users[client].user_name, users[client].l_v_num);
}else{
users[client].exper_num = userEx;
if(value>0){
PrintToChat(client,"\x04[Lv]: \x07FF0000%d | \x04 EXP: %d | \x04 EXP: +%d", users[client].l_v_num, users[client].exper_num,value);
}else{
PrintToChat(client,"\x04[Lv]: \x07FF0000%d | \x04 EXP: %d | \x04 EXP: %d", users[client].l_v_num, users[client].exper_num,value);
}
|
Try using multicolors
Link: https://forums.alliedmods.net/showthread.php?t=247770
Usage:
PHP Code:
PrintToChatAll("\x04 players \x07FF0000%s \x04 Level up %d", users[client].user_name, users[client].l_v_num);
PHP Code:
CPrintToChatAll("{colorname} players {colorname}%s {default} Level up %d", users[client].user_name, users[client].l_v_num);
__________________
Join Awesome Zombies Server :
Zombie Mod By NovaHunterZ | FastDL, Rank, SSD, Respawn | --> 54.36.111.64:27015
Zombie Riot By NovaHunterZ | FastDL, RPG, SSD, Skins, FreeVIP | --> 54.36.111.64:27025
---------------------------------
Discord Server : https://discord.gg/2DjsQ4xdd5
|
|
|
|