28.12.2012, 16:12
Hi, I created a command to give a tag, This tag is going to be displayed above the head of the players. The command is working properly.
I have to do /givetag (ID) (Text)...
I'd like to add an extra parameter called "color".
Players must do /givetag (ID) (Text) (Color)
I have tried to do it, but I'm requesting help.
I don't know how to intruduce colors in my command. Such as "green","blue".
The command is here:
I have to do /givetag (ID) (Text)...
I'd like to add an extra parameter called "color".
Players must do /givetag (ID) (Text) (Color)
I have tried to do it, but I'm requesting help.
I don't know how to intruduce colors in my command. Such as "green","blue".
The command is here:
PHP код:
CMD:givetag(playerid, params[])
{
new targetid; new text[128]; new color;
if(sscanf(params, "us[128]s",targetid, text, color)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /givetag (ID) (Text) (Color) ");
SetPlayerChatBubble(targetid, text, color, 100.0, 600000);
return 1;
}