06.03.2016, 21:16
Hello everyone i did a label command it works fine but i have problems sitting the color
i want it to be like example : /label {00FF00}This is green\n{FF0000}This is red
so if i entered this command the label should be like :
This is green
This is red
it works this way if i do it manually in gamemodint like this:
but it wont work when i enter same text with color codes with the command below:
i want it to be like example : /label {00FF00}This is green\n{FF0000}This is red
so if i entered this command the label should be like :
This is green
This is red
it works this way if i do it manually in gamemodint like this:
Код:
Create3DTextLabel("{00FF00}This is green\n{FF0000}This is red", 0xFFFFFFFF, 1350.1772,-1645.8958,13.5969, 15.0, 0, 0);
Код:
CMD:label(playerid, params[]) { new string[49], Float:x, Float:y, Float:z; if(sscanf(params, "s[90]", string)) return SendClientMessage(playerid, -1, "/label text"); GetPlayerPos(playerid, x, y, z); Create3DTextLabel(string, 0xFFFFFFFF, x, y, z, 40.0, 0, 0); return 1; }