Hi guys, i want to disable PK in my server. How can i disable PK with opcodes ?
pls stfu...Quote:
You can i think in config.cfg or common in folder bin...
Or check in SMC or in DB :)
if (p.Opcode == 0x30BF)
{
try
{
uint num = p.ReadUInt32();
if (num == this.Unique_ID)
{
int num2 = p.ReadInt8();
int num5 = p.ReadInt8();
if ((num5 == 1 || num5 == 2) && num2 == 7)
{
sendNoticeToUser("PKing is not allowed. You will be disconnected from the server.");
m_LocalSecurity.Send(p);
instaDcUser();
continue;
}
}
}
catch (Exception e)
{
DisconnectModuleSocket();
}
}