Thread: how change color of yell command?

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 how change color of yell command? 
    Registered Member noi172's Avatar
    Join Date
    Jul 2008
    Posts
    189
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    I'm kind of scratchy on the coding thing because I haven't done it for a long time, but how do you change the color of yell command like if you do ::talk it will change color? not to black, but to the color you choose?



    Reply With Quote  
     

  2. #2  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    add @bla@ or @blu@ someplace
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  3. #3  
    Registered Member noi172's Avatar
    Join Date
    Jul 2008
    Posts
    189
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    Where at?



    Reply With Quote  
     

  4. #4  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Post ur talk code
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  5. #5  
    Registered Member noi172's Avatar
    Join Date
    Jul 2008
    Posts
    189
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    alrite hold please.



    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Oct 2009
    Age
    30
    Posts
    1,037
    Thanks given
    4
    Thanks received
    8
    Rep Power
    338
    Show me ur yell statement like T said
    Reply With Quote  
     

  7. #7  
    Registered Member noi172's Avatar
    Join Date
    Jul 2008
    Posts
    189
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    if (command.startsWith("talk") && command.length() > 5) {
    String titles = "";

    if (playerRights == 1) {
    titles = "[Moderator] ";
    }
    if (playerRights == 2) {
    titles = "[Administrator : D] ";
    }
    if (playerRights == 3) {
    titles = "[Co-Owner] ";
    }

    if (playerRights == 0) {
    titles = "[Player] ";
    }

    if (playerName.equalsIgnoreCase("coder hoi11")) {
    titles = "[FORUM PRO]";
    }

    if (playerName.equalsIgnoreCase("dutch")) {
    titles = "[CODER/OWNER]";
    }

    talk(titles + "" + playerName + ": "
    + command.substring(5) );
    }



    Reply With Quote  
     

  8. #8  
    Registered Member
    Spoof's Avatar
    Join Date
    Jun 2009
    Age
    14
    Posts
    1,475
    Thanks given
    105
    Thanks received
    122
    Rep Power
    1634
    if (command.startsWith("talk") && command.length() > 5) {
    String titles = "";

    if (playerRights == 1) {
    titles = "[Moderator]@red@";
    }
    if (playerRights == 2) {
    titles = "[Administrator : D]@red@ ";
    }
    if (playerRights == 3) {
    titles = "[Co-Owner]@red@";
    }

    if (playerRights == 0) {
    titles = "[Player]@red@";
    }

    if (playerName.equalsIgnoreCase("coder hoi11")) {
    titles = "[FORUM PRO]@red@";
    }

    if (playerName.equalsIgnoreCase("dutch")) {
    titles = "[CODER/OWNER]@red@";
    }

    talk(titles + "" + playerName + ": "
    + command.substring(5) );
    }
    I'm not sure if that will work, And if you want the diffrent colors then type diffrent things in the two "@'s" like.. @blu@ or @whi@ etc.

    Best of luck, And that's my only guess.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    Thinks its like this

    Code:
    if (command.startsWith("talk") && command.length() > 5) {
    String titles = "";
    
    if (playerRights == 1) {
    titles = "[Moderator] ";
    }
    if (playerRights == 2) {
    titles = "[Administrator : D] ";
    }
    if (playerRights == 3) {
    titles = "[Co-Owner] ";
    }
    
    if (playerRights == 0) {
    titles = "[Player] ";
    }
    
    if (playerName.equalsIgnoreCase("coder hoi11")) {
    titles = "[FORUM PRO]";
    }
    
    if (playerName.equalsIgnoreCase("dutch")) {
    titles = "[@blu@CODER/OWNER@blu@]";
    }
    
    talk(titles + "" + playerName + ": "
    + command.substring(5) );
    }
    example is at the last one for coder/ower
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  10. #10  
    Log out, please.

    Georgio's Avatar
    Join Date
    Apr 2009
    Posts
    1,430
    Thanks given
    212
    Thanks received
    50
    Rep Power
    1585
    @colorhere@ before every
    Code:
    ";
    colors are @red@ @blu@ @bla@ @whi@ @gre@
    but you need to enable client side of it
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •