![]() |
[BUG]Admin Vs. Admin - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +----- Thread: [BUG]Admin Vs. Admin (/showthread.php?tid=2254) |
[BUG]Admin Vs. Admin - Nean - 16-10-2008 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 Re: [BUG]Admin Vs. Admin - Rian - 16-10-2008 Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind Re: [BUG]Admin Vs. Admin - halla - 16-10-2008 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: 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 Re: [BUG]Admin Vs. Admin - Nean - 16-10-2008 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. |