Thread: ::staff i'm try to added ::staff show who staff online with interface

Results 1 to 8 of 8
  1. #1 ::staff i'm try to added ::staff show who staff online with interface 
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    hello guys is anyone have what i want on title this will be Great appreciation
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Oct 2014
    Posts
    146
    Thanks given
    5
    Thanks received
    18
    Rep Power
    4
    Why don't you give this a try by yourself? All you ever do is ask for help straight away without even attempting the task at hand. Give it a try, and post the code that you have so far, you're not here to have people do what you want, you're here to learn off others knowledge, by us just giving you the exact code that you need would mean that you'll never learn how to do things by yourself. Have an attempt, post what you have so far, if you still can't figure it out, I'd be glad to help you.
    Reply With Quote  
     

  3. #3  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Unlike Me View Post
    Why don't you give this a try by yourself? All you ever do is ask for help straight away without even attempting the task at hand. Give it a try, and post the code that you have so far, you're not here to have people do what you want, you're here to learn off others knowledge, by us just giving you the exact code that you need would mean that you'll never learn how to do things by yourself. Have an attempt, post what you have so far, if you still can't figure it out, I'd be glad to help you.
    mate Our own language is arabic so i don't understand 100% about code good I like what you ask for help and we are helping some people also
    Reply With Quote  
     

  4. #4  
    Registered Member Matty Ice's Avatar
    Join Date
    Jul 2015
    Posts
    26
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Well i just kind of scratched this up for you but here you go..
    Code:
    if (playerCommand.equalsIgnoreCase("staff") && c.playerRights <= 1) {
    				c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " staff online.");
    				c.getPA().sendFrame126("Staff Online", 8144);
    				c.getPA().sendFrame126("@dbl@Online Staff(" + PlayerHandler.getPlayerCount()+ "):", 8145);
    				int line = 8147;
    				for (int i = 1; i < Config.MAX_PLAYERS; i++) {
    					Client p = c.getClient(i);
    					if (!c.validClient(i))
    						continue;
    					if (p.playerName != null) {
    						String title = "";
    						if (p.playerRights == 1) {
    							title = "Moderator, ";
    						} else if (p.playerRights == 2) {
    							title = "Admin, ";
    						} else if (p.playerRights == 3) {
    							title = "Owner, ";
    						}
    						title += "level-" + p.combatLevel;
    						String extra = "";
    						if (c.playerRights > 0) {
    							extra = "(" + p.playerId + ") ";
    						}
    						c.getPA().sendFrame126("@dre@" + extra + p.playerName + "@dbl@ ("+ title + ") is at " + p.absX + ", "+ p.absY, line);
    						line++;
    					}
    				}
    				c.getPA().showInterface(8134);
    				c.flushOutStream();
    			}
    }
    Not all my work at all most credits to <Zenocko >
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Ligma male grindset


    Join Date
    Nov 2011
    Age
    27
    Posts
    4,331
    Thanks given
    1,032
    Thanks received
    1,941
    Rep Power
    5000
    Quote Originally Posted by dr man 12 View Post
    mate Our own language is arabic so i don't understand 100% about code good I like what you ask for help and we are helping some people also
    Then you shouldn't be coding lol

    Spoiler for Signature:
    Attached image
    Attached image

    Attached image

    Attached image

    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Liam Baby View Post
    Then you shouldn't be coding lol
    thx for this

    - - - Updated - - -

    Quote Originally Posted by Matty Ice View Post
    Well i just kind of scratched this up for you but here you go..
    Code:
    if (playerCommand.equalsIgnoreCase("staff") && c.playerRights <= 1) {
    				c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " staff online.");
    				c.getPA().sendFrame126("Staff Online", 8144);
    				c.getPA().sendFrame126("@dbl@Online Staff(" + PlayerHandler.getPlayerCount()+ "):", 8145);
    				int line = 8147;
    				for (int i = 1; i < Config.MAX_PLAYERS; i++) {
    					Client p = c.getClient(i);
    					if (!c.validClient(i))
    						continue;
    					if (p.playerName != null) {
    						String title = "";
    						if (p.playerRights == 1) {
    							title = "Moderator, ";
    						} else if (p.playerRights == 2) {
    							title = "Admin, ";
    						} else if (p.playerRights == 3) {
    							title = "Owner, ";
    						}
    						title += "level-" + p.combatLevel;
    						String extra = "";
    						if (c.playerRights > 0) {
    							extra = "(" + p.playerId + ") ";
    						}
    						c.getPA().sendFrame126("@dre@" + extra + p.playerName + "@dbl@ ("+ title + ") is at " + p.absX + ", "+ p.absY, line);
    						line++;
    					}
    				}
    				c.getPA().showInterface(8134);
    				c.flushOutStream();
    			}
    }
    Not all my work at all most credits to <Zenocko >

    thanks its show me interface but with no staff online on interface

    imges
    Reply With Quote  
     

  9. #7  
    Registered Member Matty Ice's Avatar
    Join Date
    Jul 2015
    Posts
    26
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by dr man 12 View Post
    thx for this

    - - - Updated - - -




    thanks its show me interface but with no staff online on interface

    imges
    It should work did u set your player rights correctly?
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Matty Ice View Post
    It should work did u set your player rights correctly?
    Thank you very much you helped me alot

    edit: players normal is online with staff member on interface
    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: 2
    Last Post: 02-26-2015, 08:55 AM
  2. Replies: 2
    Last Post: 02-25-2015, 06:54 AM
  3. Replies: 6
    Last Post: 09-06-2014, 10:34 PM
  4. Replies: 9
    Last Post: 05-24-2012, 04:39 AM
  5. [PI] ::players to show who is online?
    By Acquittal in forum Help
    Replies: 15
    Last Post: 06-18-2011, 06:58 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
  •