Thread: Yell

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Yell 
    Registered Member
    Join Date
    Nov 2012
    Posts
    299
    Thanks given
    14
    Thanks received
    5
    Rep Power
    29
    My command:
    Code:
                if (playerCommand.startsWith("yell")) {
                        String rank = "";
                        String Message = playerCommand.substring(4).toLowerCase();
                    if (c.playerRights >= 0) {
                        rank = "@blu[Yell]@bla@["+ c.playerName +"]:";
                    if (c.playerRights >= 1) {
                        rank = "@blu@[Yell]@bla@["+ c.playerName +"]:";
                    }
                    if (c.playerRights >= 2) {
                        rank = "@blue@[Yell]@bla@["+ c.playerName +"]:";
                    }
                    if (c.playerRights >= 3) {
                        rank = "@blu@[Yell]@bla@["+ c.playerName +"] : ";
                    }     
                    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(rank+Message);
                       }
                    }
                }
     
                    }
    How would i add crowns to this? And capitalize names?
    Spoiler for Respected Users:
    Kojomba
    Ninth Legion
    Thanks for your help and support!
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Nov 2012
    Age
    27
    Posts
    165
    Thanks given
    91
    Thanks received
    80
    Rep Power
    160
    <img = 0> donar
    <img = 1> mod
    <img = 2> admin

    Add it before @blu@[yell]
    Reply With Quote  
     

  3. #3  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    c.playerName.toUpperCase();
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Aug 2010
    Posts
    3,174
    Thanks given
    1,724
    Thanks received
    2,002
    Rep Power
    3837
    Quote Originally Posted by ThePharaoh View Post
    <img = 0> donar
    <img = 1> mod
    <img = 2> admin

    Add it before @blu@[yell]
    That is the default, correct.


    Capitalization of the names of the [Yell] or player names?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    299
    Thanks given
    14
    Thanks received
    5
    Rep Power
    29
    Thanks for the help im testing it out now.
    Spoiler for Respected Users:
    Kojomba
    Ninth Legion
    Thanks for your help and support!
    Reply With Quote  
     

  6. #6  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Code:
    if (playerCommand.startsWith("yell")) {
            String rank = "";
            String Message = playerCommand.substring(4).toLowerCase();
         rank = "@blu@[Yell]<img="+c.playerRights+">@bla@["+ c.playerName.toUpperCase(); +"]:@blu@";
        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(rank+Message);
        }
    }
    }

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Nov 2012
    Posts
    299
    Thanks given
    14
    Thanks received
    5
    Rep Power
    29
    Legion thanks, but that gave me 53 errors, I tried to add
    Code:
    <img="+c.playerRights+">
    But its just shows up and
    Spoiler for Respected Users:
    Kojomba
    Ninth Legion
    Thanks for your help and support!
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2012
    Posts
    361
    Thanks given
    185
    Thanks received
    9
    Rep Power
    25
    try @cr2@ for an owner rank
    Reply With Quote  
     

  9. #9  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    try this instead:


    Code:
    if (playerCommand.startsWith("yell")) {
            String rank = "";
            String Message = playerCommand.substring(4).toLowerCase();
         rank = "@blu@[Yell]<@cr="+c.playerRights+"@@bla@["+ c.playerName.toUpperCase(); +"]:@blu@";
        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(rank+Message);
        }
    }
    }

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2012
    Posts
    299
    Thanks given
    14
    Thanks received
    5
    Rep Power
    29
    Nope:
    Spoiler for Respected Users:
    Kojomba
    Ninth Legion
    Thanks for your help and support!
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 11
    Last Post: 12-23-2011, 02:10 AM
  3. [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
  4. ::yell [delta] (with yell,ranks etc)
    By Coder Alex in forum Tutorials
    Replies: 9
    Last Post: 09-04-2009, 04:56 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
  •