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
    184
    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  
    Awsomesauce of a donor

    Trock's Avatar
    Join Date
    Jul 2009
    Age
    18
    Posts
    1,917
    Thanks given
    14
    Thanks received
    68
    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
    184
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    Where at?



    Reply With Quote  
     

  4. #4  
    Awsomesauce of a donor

    Trock's Avatar
    Join Date
    Jul 2009
    Age
    18
    Posts
    1,917
    Thanks given
    14
    Thanks received
    68
    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
    184
    Thanks given
    2
    Thanks received
    0
    Rep Power
    68
    alrite hold please.



    Reply With Quote  
     

  6. #6  
    Jus Blaze '


    Join Date
    Oct 2009
    Age
    22
    Posts
    1,034
    Thanks given
    4
    Thanks received
    7
    Rep Power
    323
    Show me ur yell statement like T said
    Reply With Quote  
     

  7. #7  
    Registered Member noi172's Avatar
    Join Date
    Jul 2008
    Posts
    184
    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  
    I do it, for the Lulz.

    Square[]'s Avatar
    Join Date
    Jun 2009
    Age
    5
    Posts
    1,416
    Thanks given
    61
    Thanks received
    115
    Rep Power
    1554
    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  
    Awsomesauce of a donor

    Trock's Avatar
    Join Date
    Jul 2009
    Age
    18
    Posts
    1,917
    Thanks given
    14
    Thanks received
    68
    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
    Age
    19
    Posts
    1,423
    Thanks given
    211
    Thanks received
    48
    Rep Power
    1568
    @colorhere@ before every
    Code:
    ";
    colors are @red@ @blu@ @bla@ @whi@ @gre@
    but you need to enable client side of it


    Spoiler for Vouches:

    Quote Originally Posted by Xaves View Post
    I'm sorry, I kinda got busy with stuff irl right after posting this thread and never updated it.
    I'll update it ASAP.

    Also, big vouch for Georgio, he went first, fast and easy. Will happily sell to him again
    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)

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