Thread: Yell command with colors

Results 1 to 6 of 6
  1. #1 Yell command with colors 
    Registered Member

    Join Date
    Jul 2008
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    76
    I'm trying to add colors to my yell command, but when i use this code.
    Code:
    	
    String rank = "";
    if (client.playerRights == 3) rank = "@red@[Owner] ";
    client.yell(rank + client.playerName +": " +command.substring(5));
    		}
    	}
    it makes it like this [Owner] name: hai.
    i just want it to be [Owner] name: hai.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2008
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    76
    still need help.
    Reply With Quote  
     

  3. #3  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Code:
            String rank = (playerRights == 3) ? "[@red@Owner@bla@] " :"";
            client.yell(rank + client.playerName +": +command.substring(5));
    try that.

    Reply With Quote  
     

  4. #4  
    ElJaso
    Guest
    whoaaa cool... thts nice to know! thankz!
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jul 2008
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    76
    @Ecstasy'
    had to change it a bit.
    Code:
    String rank = "";
    if(client.playerRights == 3) rank = "[@red@Owner@bla@]";
            client.yell(rank + client.playerName + ": "+ command.substring(5));
    		}
    	}
    repped
    Reply With Quote  
     

  6. #6  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Thanks. And umm no mine shoulda worked lol, its the same as yours just a different style.

    Reply With Quote  
     


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
  •