Mirage Source
http://www.miragesource.net/forums/

[BUG]Admin Vs. Admin
http://www.miragesource.net/forums/viewtopic.php?f=193&t=4563
Page 1 of 1

Author:  Nean [ Thu Oct 16, 2008 5:26 am ]
Post subject:  [BUG]Admin Vs. Admin

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....

Author:  Rian [ Thu Oct 16, 2008 5:54 am ]
Post subject:  Re: [BUG]Admin Vs. Admin

Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind

Author:  halla [ Thu Oct 16, 2008 7:15 am ]
Post subject:  Re: [BUG]Admin Vs. Admin

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

Author:  Nean [ Thu Oct 16, 2008 7:36 am ]
Post subject:  Re: [BUG]Admin Vs. Admin

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/