Thread: Admin Attacking players :(

Results 1 to 3 of 3
  1. #1 Admin Attacking players :( 
    Registered Member Frankie's Avatar
    Join Date
    Feb 2013
    Posts
    568
    Thanks given
    10
    Thanks received
    16
    Rep Power
    12
    i wanna make it so admin can't attack players
    but they can attack other admins. i know its combatass
    a type like
    Spoiler for coded:

    public void attackPlayer(int i) {
    try { boolean cantAttack = false;
    Client o = (Client) Server.playerHandler.players[id];
    if (o.playerRights == 0) {
    if (c.playerRights == 3) {
    c.sendMessage("You can't attack him.");
    resetPlayerAttack();
    cantAttack = true;
    return;
    }
    }
    if (cantAttack)
    return;
    if (o.playerRights == 3) {
    if (c.playerRights == 0) {
    c.sendMessage("You can't attack him.");
    resetPlayerAttack();
    cantAttack = true;
    return;
    }
    }
    if (cantAttack)
    return;
    if (id == c.playerId)
    return;
    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Look if you got admin's that are attacking players... and ignoring your rules... your hole staff team is fucked up lol.. Demote them and move on.


    Reply With Quote  
     

  3. #3  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    if (this.c.playerRights > 1)
    return;
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    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. Admin - attacking players [Solved]
    By Drewski in forum Help
    Replies: 22
    Last Post: 11-15-2012, 05:44 PM
  2. How to make Admins Not attack players.
    By Hoodlum in forum Requests
    Replies: 1
    Last Post: 06-23-2011, 12:16 AM
  3. Replies: 15
    Last Post: 01-13-2010, 02:57 AM
  4. Admin's Cannot Attack Players.(explained)
    By rickard82 in forum Tutorials
    Replies: 3
    Last Post: 08-03-2008, 02:22 AM
  5. Making NPCs attack players..
    By Pancakebuddy in forum Tutorials
    Replies: 4
    Last Post: 06-07-2008, 03:56 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
  •