Thread: player rights command (REP ++)

Results 1 to 5 of 5
  1. #1 player rights command (REP ++) 
    Registered Member
    Join Date
    Jan 2010
    Posts
    83
    Thanks given
    1
    Thanks received
    1
    Rep Power
    1
    Hi is there a command to let admins give a player different rights ... Like if my friend wants to make another player a mod he can ???

    Im on a deltascape source and client

    Thanks
    Reply With Quote  
     

  2. #2  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,924
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    find mute command and just change some things there. ;P anyway if you dont know what to change, post the mute command here and I will do it for you.
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     

  3. #3  
    Kedd
    Guest
    umm pretty much any command but were it says player rights
    add this
    && playerName.equalsIgnoreCase("NAME HERE")) {
    example:

    Code:
                if (command.startsWith("mute") && playerName.equalsIgnoreCase("NAME HERE")) {
    
                    try {
    
                        String otherPName = command.substring(5);
    
                        int otherPIndex = PlayerHandler.getPlayerID(otherPName);
    
                        if (otherPIndex != -1) {
    
                            client p = (client) server.playerHandler.players[otherPIndex];
    
                            p.muted = true;
    
       writePunishment(p.playerName, "mutes");
    
       sM("You have muted "+p.playerName+"!");
    
                        } else { 
    
                           sM("The name doesnt exist."); 
    
                        }
    
                    } catch (Exception e) { 
    
                        sM("Try entering a name you want to mute..");
    
                    }
    
                }
    Reply With Quote  
     

  4. #4  
    Kedd
    Guest
    tell me if it works
    Reply With Quote  
     

  5. #5  
    xx Promises xx
    Guest
    This is my ::givemod Command if thats what your after

    } else if (command.startsWith("givemod") && playerRights >= 2) {
    String name = command.substring(8);

    try {
    int p = PlayerHandler.getPlayerID(name);
    client c = (client) server.playerHandler.players[p];

    c.playerRights = 1;
    c.disconnected = true;
    } catch (Exception e) {
    sM(name + " either isn't online or doesn't exist");
    }
    you just have to make sure your friend is an admin

    idk if thats what you wanted but there..
    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

Tags for this Thread

View Tag Cloud

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