[HOTFIX] Set Spawn dimension

This commit is contained in:
hydrant
2021-04-11 22:39:24 +02:00
parent 231edc71d9
commit fbbc61a523
2 changed files with 3 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ namespace ReallifeGamemode.Server.Events
//player.SetSharedData("vehicleAdminSpeed2", 1.0);
player.SetData("isLoggedIn", false);
player.SafeTeleport(new Vector3(-1883.736, -781.4911, -10));
player.Dimension = (uint)(player.Handle.Value + 1);
bool registered = false;

View File

@@ -144,6 +144,8 @@ namespace ReallifeGamemode.Server.Events
{
Jail.Check_PutBehindBars(user);
}
player.Dimension = 0;
}
player.TriggerEvent("draw", player.Name, player.Handle.Value);