Thread: Ok i got what i needed from co-owner and owner rep++ if u can help me with this

Results 1 to 5 of 5
  1. #1 Ok i got what i needed from co-owner and owner rep++ if u can help me with this 
    Registered Member Deidara's Avatar
    Join Date
    Mar 2009
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    ok so with the yell comand i got from jonathan i would like the co-owner and owner to have dif colors when they type like owner=RED and co-owner=BLUE i will need the stuff added in this code tht i got from jonathan....

    if (cmd[0].equals("yell")) {
    playerCommand = playerCommand.toLowerCase();
    if (p.muted == 0) {
    String message = playerCommand.substring(5);
    String titles = "";
    if (p.rights == 2) {
    titles = "<img=0><col=ff0000>[Admin] ";
    }
    if (p.username.equals("co-owner name here")) {
    titles = "<img=1><col=00ff00>[Co-owner] ";
    }
    if (p.username.equals("yourname here")) {
    titles = "<img=1><col=C12DBF>[Host/Coder/Owner] ";
    }
    for(Player pl : Engine.players)
    p.frames.sendMessage(pl, titles + "" + p.username + ": " +message);
    } else {
    p.frames.sendMessage(p, "You can't yell because you are muted!");
    }
    }

    btw how would i add [mod] into tht..... like this maybe???
    if (p.rights == 1) {
    <img=0><col=ff0001>[Mod] ";
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Deidara View Post
    ok so with the yell comand i got from jonathan i would like the co-owner and owner to have dif colors when they type like owner=RED and co-owner=BLUE i will need the stuff added in this code tht i got from jonathan....

    if (cmd[0].equals("yell")) {
    playerCommand = playerCommand.toLowerCase();
    if (p.muted == 0) {
    String message = playerCommand.substring(5);
    String titles = "";
    if (p.rights == 2) {
    titles = "<img=0><col=ff0000>[Admin] ";
    }
    if (p.username.equals("co-owner name here")) {
    titles = "<img=1><col=00ff00>[Co-owner] ";
    }
    if (p.username.equals("yourname here")) {
    titles = "<img=1><col=C12DBF>[Host/Coder/Owner] ";
    }
    for(Player pl : Engine.players)
    p.frames.sendMessage(pl, titles + "" + p.username + ": " +message);
    } else {
    p.frames.sendMessage(p, "You can't yell because you are muted!");
    }
    }

    btw how would i add [mod] into tht..... like this maybe???
    if (p.rights == 1) {
    <img=0><col=ff0001>[Mod] ";
    here
    Code:
    if (p.rights == 1) {
    titles = "<img=0><col=ff0000>[Moderator] ";
    }
    Reply With Quote  
     

  3. #3  
    Registered Member Deidara's Avatar
    Join Date
    Mar 2009
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    ty the compiled perfectly rep+
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Quote Originally Posted by Deidara View Post
    ty the compiled perfectly rep+
    no problem
    Reply With Quote  
     

  5. #5  
    Registered Member Deidara's Avatar
    Join Date
    Mar 2009
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    im having a client login prob now..........
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •