Thread: ''PI'' Rights command like ( to give player rights 4 or 5 ''tyvm'' ++REP

Results 1 to 9 of 9
  1. #1 ''PI'' Rights command like ( to give player rights 4 or 5 ''tyvm'' ++REP 
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Hey i need a command

    1st to give player a rights 4

    2nd to give rights 5...

    Ty in advance
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2009
    Posts
    1,874
    Thanks given
    119
    Thanks received
    233
    Rep Power
    408
    theres no such thing as rights 5? and if there is what is it?
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Donator
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    May 2010
    Posts
    1,550
    Thanks given
    92
    Thanks received
    154
    Rep Power
    0
    Just edit the char file, or edit the ::givemod command.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    There is no givemod command buddy?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    26
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    Btw your gonna have problems if your using rights 5
    Cause if you have commands like if(right > 2) than also donators could use it

    But if you want it here it is:
    if (playerCommand.startsWith("giverights")) {
    try {
    String teleTo = playerCommand.substring(11);
    for(int i = 0; i < Config.MAX_PLAYERS; i++) {
    if(Server.playerHandler.players[i] != null) {
    if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(teleTo)) {
    Client p = (Client) Server.playerHandler.players[i];
    p.playerRights = 1; //Change to w/e you want
    p.disconnected = true;
    }
    }
    }
    } catch(Exception e) {
    c.sendMessage("Player is not online.");
    }
    }
    Made it myself, wanst to hard, rep+ & thnks?
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2009
    Posts
    4,003
    Thanks given
    1,003
    Thanks received
    1,029
    Rep Power
    0
    Quote Originally Posted by Division View Post
    Btw your gonna have problems if your using rights 5
    Cause if you have commands like if(right > 2) than also donators could use it

    But if you want it here it is:

    Made it myself, wanst to hard, rep+ & thnks?
    I want, i added the normal player rights for rights 4-5 so they cant use pickup or any other admin commands.

    TYVM


    EDIT: Don't work for some reason O.O
    Reply With Quote  
     

  8. #8  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    26
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    It has to work... Cause it works perfectly on my server...
    Reply With Quote  
     

  9. #9  
    Owner of Zantarix Notepad's Avatar
    Join Date
    Oct 2008
    Age
    30
    Posts
    580
    Thanks given
    21
    Thanks received
    33
    Rep Power
    67
    just change it your self you lazy bugger
    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
  •