Thread: need yell help

Results 1 to 6 of 6
  1. #1 need yell help 
    Registered Member dragonflame's Avatar
    Join Date
    Jan 2010
    Posts
    107
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    Code:
    }
    
    		if (command.startsWith("yell") && (command.length() > 5)) {
    			if (!muted) {
    				String text = command.substring(5);
    				String[] bad = { "chalreq", "duelreq", "tradereq" };
    				for (String element : bad) {
    					if (text.indexOf(element) >= 0) {
    						return;
    					}
    				}
    				lastMessage[0] = lastMessage[1];
    				lastMessage[1] = lastMessage[2];
    				lastMessage[2] = Character.toUpperCase(text.charAt(0))
    						+ text.substring(1);
    		
    				
    					yell(playerName + ":  "
    							+ Character.toUpperCase(text.charAt(0))
    							+ text.substring(1));
    			} else
    				sendMessage(playerName + ":  " + command.substring(5));
    		}
    hey when i try to add an level requirments it does not work.
    <a href=http://i1233.photobucket.com/albums/ff388/alvinmerks1/partyclientsignature.jpg target=_blank rel=nofollow>http://i1233.photobucket.com/albums/...tsignature.jpg</a>
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Oct 2011
    Posts
    388
    Thanks given
    33
    Thanks received
    45
    Rep Power
    0
    if (playerCommand.startsWith("yell") && c.playerRights <= 0) {
    if (System.currentTimeMillis() - c.lastyell > 30000) {
    c.lastyell = System.currentTimeMillis();
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c2 = (Client)Server.playerHandler.players[j];
    c2.sendMessage("[Player] " + c.playerName + ": " + Misc.optimizeText(playerCommand.substring(5)));
    }//Lol, from Lul aka Thee Rush
    }
    } else {
    c.sendMessage("Regular players can only yell once per 30 seconds.");
    }
    }
    Place in commands.java > Server Sided
    Reply With Quote  
     

  3. #3  
    Registered Member
    CTucker's Avatar
    Join Date
    Oct 2008
    Posts
    2,422
    Thanks given
    263
    Thanks received
    281
    Rep Power
    343
    Thats not what he was asking.

    He was asking for players to be a certain level it looks.

    if(c.playerLevel <= MinLevel ) return;

    is all he would need
    Reply With Quote  
     

  4. #4  
    Registered Member dragonflame's Avatar
    Join Date
    Jan 2010
    Posts
    107
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    i did exactly mean what u say originial

    but i need an example, like snippets
    <a href=http://i1233.photobucket.com/albums/ff388/alvinmerks1/partyclientsignature.jpg target=_blank rel=nofollow>http://i1233.photobucket.com/albums/...tsignature.jpg</a>
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Code:
    if (c.playerLevel[#] < #) {
    				return;
    			}
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  6. #6  
    Registered Member dragonflame's Avatar
    Join Date
    Jan 2010
    Posts
    107
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    i know that but where, because when i add it doesnt help or it onley say a message that u need 2 thieving.. or it does nothing or it does give 4 time the yell in the chat
    <a href=http://i1233.photobucket.com/albums/ff388/alvinmerks1/partyclientsignature.jpg target=_blank rel=nofollow>http://i1233.photobucket.com/albums/...tsignature.jpg</a>
    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. Replies: 50
    Last Post: 10-07-2015, 04:22 AM
  2. [PI] Customizable Yell Tags > Better Yell System
    By I try too hard in forum Help
    Replies: 6
    Last Post: 08-04-2011, 03:59 PM
  3. ::yell [delta] (with yell,ranks etc)
    By Coder Alex in forum Tutorials
    Replies: 9
    Last Post: 09-04-2009, 04:56 AM
  4. yell
    By Zᴀᴄʜ in forum Help
    Replies: 4
    Last Post: 08-25-2009, 02:12 AM
  5. 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
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •