Quote:
Originally Posted by M4n1ak
WTF is that code.. so turkish way to code something.
This can be simplified (and faster) to:
PHP Code:
#region Closing ctf , arena and fortress exploit
bool someShitBoolean = Main.absolute_bypass.Contains(this.username);
if (!someShitBoolean && (packet.Opcode == 0x34B1 || packet.Opcode == 0x34D2 || packet.Opcode == 0x385F)) {
this.CleanClient();
continue;
}
#endregion
|
i copy paste it from my old src.
i was disabled these opcodes about 2 years ago,
after 3DProgrammer released his arena bot tool.
did that code will be faster?
you should put the opcode checking case first to ignore checking username
into bypass list everytime with any opcode!
please edit yours too.
for who want fixing code (copy&paste)
here it is:
Code:
#region Closing ctf , arena and fortress exploit
if (packet.Opcode == 0x34B1 || packet.Opcode == 0x34D2 || packet.Opcode == 0x385F)
{
this.CleanClient(); // disconnect function as you call it in your src
continue;
}
#endregion
Quote:
Originally Posted by utku1676
why it here ? " !Main.absolute_bypass.Contains(this.username) "
for GM ? or wht
|
its admin bypass list, which added into a table or text file as you did.
if you don't have in your src something like this. just ignore it.