03.06.2018, 07:40
Use this Strreplace function - https://sampforum.blast.hk/showthread.php?tid=396978
to replace opening angular bracket with "\"NEW_COLOR_NAME\"<" and closing bracket with ">\"OLD_COLOR_NAME\"".
for example,
Hi <smiles> Sir.
to replace opening angular bracket with "\"NEW_COLOR_NAME\"<" and closing bracket with ">\"OLD_COLOR_NAME\"".
for example,
Код:
new str[20] = "Hi <smiles> Sir." strreplace(str, "<", "{FF0000}<"); strreplace(str, ">", ">{FFFF00}"); SendClientMessage(playerid, 0xFFFF00FF, str); //This Will output,