Thread: Making new ::Yell Tags?

Results 1 to 5 of 5
  1. #1 Making new ::Yell Tags? 
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    How can I make a custom tag that is dedicated to a single player?

    Code:
    			if (playerCommand.startsWith("yell")) {
    				for (int j = 0; j < Server.playerHandler.players.length; j++) {
    					if (Server.playerHandler.players[j] != null) {
    						Client c2 = (Client)Server.playerHandler.players[j];
    							if (c.playerRights == 0){
    								c.sendMessage("You must be a donator to use this command!");
    							}
    							if (c.playerRights == 1){
    							
    								c2.sendMessage("<col=255>[Mod]</col><img=1>"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 2){
    							
    								c2.sendMessage("<col=255>[Admin]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 3){
    								c2.sendMessage("<shad=15695415>[Owner]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    							}else if (c.playerRights == 4){
    								c2.sendMessage("<shad=6081134>[Donator]</col><img=0>"+ Misc.optimizeText(c.playerName) +": "
    												+ Misc.optimizeText(playerCommand.substring(5)) +"");
    						}
    						}
    					}
    				}
            
            
        }
    Reply With Quote  
     

  2. #2  
    Registered Member n1ck3vans's Avatar
    Join Date
    Sep 2010
    Posts
    113
    Thanks given
    0
    Thanks received
    7
    Rep Power
    1
    }else if (c.playerName.equalsIgnoreCase("frank"));
    c2.sendMessage("<shad=15695415>[Owner]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned x eddie x's Avatar
    Join Date
    Feb 2011
    Posts
    528
    Thanks given
    17
    Thanks received
    7
    Rep Power
    0
    what do you mean like coler?
    Reply With Quote  
     

  5. #4  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,819
    Thanks received
    1,767
    Rep Power
    2438
    If playername.equals there's.
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  6. #5  
    Registered Member n1ck3vans's Avatar
    Join Date
    Sep 2010
    Posts
    113
    Thanks given
    0
    Thanks received
    7
    Rep Power
    1
    Mine will work fine.. just change the name and the "tag".
    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

Similar Threads

  1. Need Help Making Donators Only Yell
    By Yugo_Pride in forum Help
    Replies: 7
    Last Post: 01-08-2010, 07:42 PM
  2. ::yell [delta] (with yell,ranks etc)
    By Coder Alex in forum Tutorials
    Replies: 9
    Last Post: 09-04-2009, 04:56 AM
  3. Two new tags
    By Justin in forum Showcase
    Replies: 8
    Last Post: 06-05-2009, 08:42 PM
  4. very easy yell timer can yell once in 5 secs
    By lord jahva in forum Tutorials
    Replies: 13
    Last Post: 07-06-2008, 10:57 AM
  5. Making Yell command log to a seperate file
    By DegeneralizationX in forum Tutorials
    Replies: 8
    Last Post: 10-04-2007, 05:20 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •