Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUG]Admin Vs. Admin
#1
So, when I try to attack another Admin, it says "You cannot attack him, for thou art an Admin", however it still does the damage to him. It does the same, if the other char has no access. I checked out the:
Code:
' Check to make sure that they dont have access
    If GetPlayerAccess(Attacker) > ADMIN_MONITOR Then
        Call PlayerMsg(Attacker, "You cannot attack any player for thou art an admin!", BrightBlue)
        Exit Function
    End If
, and I see no problems....
Reply
#2
Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind
Reply
#3
Nean Wrote:So, when I try to attack another Admin, it says "You cannot attack him, for thou art an Admin", however it still does the damage to him. It does the same, if the other char has no access. I checked out the:
Code:
' Check to make sure that they dont have access
    If GetPlayerAccess(Attacker) > ADMIN_MONITOR Then
        Call PlayerMsg(Attacker, "You cannot attack any player for thou art an admin!", BrightBlue)
        Exit Function
    End If
, and I see no problems....

Read that code and what it says

You can not attack anyone else cause though art an admin

That means you cant attack anyone else because you are an admin. So remove that if you want to kill helpless people

if you want so as an admin you cant be attacked change to...

well you gotta see if attacker is =< ADMIN_MONITOR and then see if person being attacked is >

that way admins can attack anyone but if your below admin you cant attack admins
Reply
#4
Sonire Wrote:Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind

It was CanAttackPlayer, but thanks a lot dude. That worked perfectly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)