anti cheat

This commit is contained in:
hydrant
2021-04-11 02:10:12 +02:00
parent 692b7aa916
commit 2fd484f31d
20 changed files with 336 additions and 49 deletions

View File

@@ -113,7 +113,7 @@ namespace ReallifeGamemode.Server.Events
currentPlayerCreatorDimension++;
NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
player.Position = new Vector3(402.8664, -996.4108, -99.00027);
player.SafeTeleport(new Vector3(402.8664, -996.4108, -99.00027));
player.Rotation = new Vector3(0, 0, 180);
player.TriggerEvent("toggleCreator");
}
@@ -123,7 +123,7 @@ namespace ReallifeGamemode.Server.Events
UpdateCharacterCloth.LoadCharacterDefaults(player);
if (user.JailTime <= 0)
{
NAPI.Player.SpawnPlayer(player, new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0);
player.SafeTeleport(new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0, true);
}
else
{
@@ -151,7 +151,7 @@ namespace ReallifeGamemode.Server.Events
{
player.SetData("isDead", false);
}
}, delayTime: 1000);
}, delayTime: 1000);
}
}
}