Thread: [REQ] SIMPLE Yell Command

Results 1 to 5 of 5
  1. #1 [REQ] SIMPLE Yell Command 
    Registered Member
    Join Date
    Jun 2012
    Posts
    213
    Thanks given
    4
    Thanks received
    19
    Rep Power
    2
    I need a simple yell command, no custom yell titles, no yell colors based on ranks just a SIMPLE ::yell command because every single yell command ive used has an error..


    Support Signatures
    [SPOIL]

    [/SPOIL]


    Reply With Quote  
     

  2. #2  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Code:
        	if (playerCommand.startsWith("yell")) {
        		for (int j = 0; j < PlayerHandler.players.length; j++) {
        			if (PlayerHandler.players[j] != null) {
        				Client c2 = (Client)PlayerHandler.players[j];
        				c2.sendMessage(Misc.optimizeText(c.playerName) +": "
    								+ Misc.optimizeText(playerCommand.substring(5)) +"");
    				}
    			} 
    		}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2012
    Posts
    213
    Thanks given
    4
    Thanks received
    19
    Rep Power
    2
    Thanks, worked nicely.


    Support Signatures
    [SPOIL]

    [/SPOIL]


    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    213
    Thanks given
    4
    Thanks received
    19
    Rep Power
    2
    This is a bit much to ask but how would i edit it to make it say because this one seems a bit plain, i thought it would be easier to edit but i got errors.

    [Yell] Sup Nig: Hello.


    Support Signatures
    [SPOIL]

    [/SPOIL]


    Reply With Quote  
     

  5. #5  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Code:
        	if (playerCommand.startsWith("yell")) {
        		for (int j = 0; j < PlayerHandler.players.length; j++) {
        			if (PlayerHandler.players[j] != null) {
        				Client c2 = (Client)PlayerHandler.players[j];
        				c2.sendMessage("@red@[Yell]@blu@ " + Misc.optimizeText(c.playerName) +": <col=0>"
    								+ Misc.optimizeText(playerCommand.substring(5)) +"");
    				}
    			} 
    		}
    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: 04-17-2014, 02:19 PM
  2. [PI] Simple Yell with Crowns
    By Roboyto in forum Snippets
    Replies: 30
    Last Post: 01-18-2014, 11:14 PM
  3. real simple if muted cant do ::yell
    By slimjimm000 in forum Snippets
    Replies: 5
    Last Post: 07-10-2010, 07:12 PM
  4. [Delta] Simple Yell Command [Delta]
    By Lation in forum Snippets
    Replies: 34
    Last Post: 10-27-2009, 06:46 AM
  5. Simple but Effective ::yell
    By Demetri in forum Show-off
    Replies: 11
    Last Post: 05-10-2009, 04:08 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
  •