Thread: Server Message

Results 1 to 2 of 2
  1. #1 Server Message 
    Registered Member
    Join Date
    Mar 2011
    Posts
    77
    Thanks given
    1
    Thanks received
    1
    Rep Power
    0
    Code:
    public static void attemptAnswer(Player p, String attempt) {
    if (!currentQuestion.equals("") && attempt.replaceAll("_", " ").equalsIgnoreCase(currentAnswer)) {
    currentQuestion = "";
    p.pkPoints++;
    sendServerMessage(p.playerName + " IS CORRECT AND GAINED 1PK POINT!");
    }
    }

    How would i make the players name all CAPS and make the message green? Every time ive tried adding a color and TRIVIA: at the beginning before p.playerName it gives me errors
    Reply With Quote  
     

  2. #2  
    Banned Server Message Market Banned


    Join Date
    Jan 2011
    Age
    26
    Posts
    3,112
    Thanks given
    1,198
    Thanks received
    1,479
    Rep Power
    0
    Code:
    sendServerMessage("@gre@"+p.playerName.toUpperCase() + " IS CORRECT AND GAINED 1PK POINT!");
    change @gre@ to whatever is used to display green, some clients have the newer text engine so it might be different
    Reply With Quote  
     

  3. Thankful user:



Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [525] Server Message Each 60 Seconds! [525]
    By Pedo_Bear in forum Tutorials
    Replies: 26
    Last Post: 12-05-2009, 05:22 AM
  2. How to make a server message for [Z508/Z525]
    By kay oh in forum Configuration
    Replies: 3
    Last Post: 11-08-2009, 08:14 PM
  3. Automated Server Messages
    By Ken in forum Tutorials
    Replies: 19
    Last Post: 07-31-2009, 11:25 AM
  4. server messages
    By Warlock 999 in forum Help
    Replies: 4
    Last Post: 03-24-2009, 07:07 PM
  5. How to make a server message
    By SilentZPrO in forum Help
    Replies: 7
    Last Post: 02-18-2009, 10:12 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •