mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
anti-cheat returns
This commit is contained in:
1 parent
a37912ca64
commit
a557fd5749
1 file changed
+6
-4
@@ -178,6 +178,8 @@ class AntiCheat
|
||||
{
|
||||
byte Type = reader.ReadByte();
|
||||
BAUNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)} - {Enum.GetName((SystemTypes)callId)}");
|
||||
|
||||
return;
|
||||
}
|
||||
if (callId is (byte)RpcCalls.UpdateSystem)
|
||||
{
|
||||
@@ -191,10 +193,10 @@ class AntiCheat
|
||||
{
|
||||
BAUNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)} - {Enum.GetName((SystemTypes)callId)}");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsImpostor)
|
||||
@@ -202,9 +204,9 @@ class AntiCheat
|
||||
if (callId is (byte)RpcCalls.CompleteTask or (byte)RpcCalls.BootFromVent)
|
||||
{
|
||||
BAUNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)}");
|
||||
}
|
||||
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (callId is (byte)RpcCalls.Pet or (byte)RpcCalls.CancelPet)
|
||||
|
||||
Reference in new issue
Block a user