Thread: help with ::alert command

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member
    Join Date
    May 2009
    Posts
    844
    Thanks given
    44
    Thanks received
    39
    Rep Power
    29
    Have you added it client sided?
    Reply With Quote  
     

  2. #12  
    Registered Member
    Join Date
    Aug 2010
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Johnnysauur View Post
    Hmm,

    Code:
    else if (command.startsWith("alert") && playerRights >= 4)
    			{
    			try {
    
    			String announcement = command.substring(8);
    			PlayerHandler.messageToAll = "@blu@[OWNER]" + playerName + command.substring(8);
    			sendMessage("You have successfully sent an announcement.");
    
    			} catch(Exception e) {
    			sendMessage("Wrong syntax! Use ::announce [ANNOUNCEMENT].");
    			}
    }
    Try that, not 100% sure it works.
    this dont work because when i do ::alert ingame it looks like this
    @blu@[OWNER]
    Reply With Quote  
     

  3. #13  
    Banned

    Join Date
    Oct 2009
    Posts
    438
    Thanks given
    29
    Thanks received
    108
    Rep Power
    0
    You need a color script, add it VIA client. Go to the client section and look up a guide.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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
  •