Help with my /givetag command.
#1

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:
PHP код:
CMD:givetag(playeridparams[])
{
    new 
targetid; new text[128]; new color;
    if(
sscanf(params"us[128]s",targetidtextcolor)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /givetag (ID) (Text) (Color) ");
    
SetPlayerChatBubble(targetidtextcolor100.0600000);
    return 
1;

Reply


Messages In This Thread
Help with my /givetag command. - by Magic_Time - 28.12.2012, 16:12
Re: Help with my /givetag command. - by [HK]Ryder[AN] - 28.12.2012, 16:20
Re: Help with my /givetag command. - by Diorturato - 28.12.2012, 16:21
Re: Help with my /givetag command. - by Magic_Time - 28.12.2012, 16:28
Re: Help with my /givetag command. - by Diorturato - 28.12.2012, 16:34
Re: Help with my /givetag command. - by Magic_Time - 28.12.2012, 16:38
Re: Help with my /givetag command. - by Diorturato - 28.12.2012, 16:44
Re: Help with my /givetag command. - by Magic_Time - 28.12.2012, 16:56

Forum Jump:


Users browsing this thread: 5 Guest(s)