cheater meldung entfernt wenn der cheater admin ist
This commit is contained in:
@@ -119,7 +119,18 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
lastPositions[v.Handle] = v.Position;
|
lastPositions[v.Handle] = v.Position;
|
||||||
|
|
||||||
double distance = lastPosition.DistanceTo(v.Position) / 1000.0;
|
double distance = lastPosition.DistanceTo(v.Position) / 1000.0;
|
||||||
if (distance > 0.5) { ChatService.BroadcastAdmin($"Möglicher Cheater - {player.Name}", AdminLevel.MAPPING); continue; }
|
|
||||||
|
if(!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (player.GetUser()?.IsAdmin(AdminLevel.PLAYER) ?? true)
|
||||||
|
{
|
||||||
|
if (distance > 0.5) { ChatService.BroadcastAdmin($"Möglicher Cheater - {player.Name}", AdminLevel.MAPPING); continue; }
|
||||||
|
}
|
||||||
|
|
||||||
if (!player.GetData<bool>("hasPassager")) continue;
|
if (!player.GetData<bool>("hasPassager")) continue;
|
||||||
foreach (Player occupant in v.Occupants)
|
foreach (Player occupant in v.Occupants)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user