Using collors in command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Using collors in command (
/showthread.php?tid=662664)
Using collors in command -
GospodinX - 07.01.2019
Hi guys..
How to make that players can use collors in command.For example:
/b Hey guys,my name is {F00000} GospodinX
It need to print:
Hey guys,my name is
GospodinX
Code:
YCMD:b(playerid,params[],help)
{
new text[100],string1[128];
if(sscanf(params, "s[100]", text)) return 1;
format(string1, 105, " (( %s ))", text);
SendClientMessageToAll(-1, string1);
return 1;
}
If I just do this,I can't use colors,because it will be always white color.Thank you
Re: Using collors in command -
Heress - 07.01.2019
Quote:
Originally Posted by GospodinX
Hi guys..
How to make that players can use collors in command.For example:
/b Hey guys,my name is {F00000} GospodinX
It need to print:
Hey guys,my name is GospodinX
Code:
YCMD:b(playerid,params[],help)
{
new text[100],string1[128];
if(sscanf(params, "s[100]", text)) return 1;
format(string1, 105, " (( %s ))", text);
SendClientMessageToAll(-1, string1);
return 1;
}
If I just do this,I can't use colors,because it will be always white color.Thank you
|
try to define color codes and then use
Re: Using collors in command -
GospodinX - 07.01.2019
No you are not helped me.I want that player can type color in chat.
Re: Using collors in command -
Heress - 07.01.2019
Quote:
Originally Posted by GospodinX
No you are not helped me.I want that player can type color in chat.
|
You can define and html color type, i don't talk about samp color defines
Read:
https://sampforum.blast.hk/showthread.php?tid=611302