Activate CharCreator
This commit is contained in:
@@ -58,21 +58,21 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
var userItems = loginUser.UserItems.ToList().FindAll(u => u.UserId == user.Id);
|
var userItems = loginUser.UserItems.ToList().FindAll(u => u.UserId == user.Id);
|
||||||
player.SetData("items", userItems);
|
player.SetData("items", userItems);
|
||||||
|
|
||||||
//if (user.CharacterId == null)
|
if (user.CharacterId == null)
|
||||||
//{
|
{
|
||||||
// var currentPlayerCreatorDimension = (uint)NAPI.Data.GetWorldData("playerCreatorDimension");
|
var currentPlayerCreatorDimension = (uint)NAPI.Data.GetWorldData("playerCreatorDimension");
|
||||||
// currentPlayerCreatorDimension++;
|
currentPlayerCreatorDimension++;
|
||||||
// NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
|
NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
|
||||||
// player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
|
player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
|
||||||
// player.Position = new Vector3(402.8664, -996.4108, -99.00027);
|
player.Position = new Vector3(402.8664, -996.4108, -99.00027);
|
||||||
// player.TriggerEvent("toggleCreator");
|
player.TriggerEvent("toggleCreator");
|
||||||
//}
|
}
|
||||||
//else
|
else
|
||||||
//{
|
{
|
||||||
CharacterCreator.ApplyCharacter(player);
|
CharacterCreator.ApplyCharacter(player);
|
||||||
UpdateCharacterCloth.LoadCharacterDefaults(player);
|
UpdateCharacterCloth.LoadCharacterDefaults(player);
|
||||||
NAPI.Player.SpawnPlayer(player, new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0);
|
NAPI.Player.SpawnPlayer(player, new Vector3(user.PositionX, user.PositionY, user.PositionZ), 0);
|
||||||
//}
|
}
|
||||||
|
|
||||||
player.TriggerEvent("draw", player.Name, player.Handle.Value);
|
player.TriggerEvent("draw", player.Name, player.Handle.Value);
|
||||||
if (user.Dead == true)
|
if (user.Dead == true)
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
player.SetData("isLoggedIn", true);
|
player.SetData("isLoggedIn", true);
|
||||||
player.SetData("isDead", false);
|
player.SetData("isDead", false);
|
||||||
|
|
||||||
//var currentPlayerCreatorDimension = (uint) NAPI.Data.GetWorldData("playerCreatorDimension");
|
var currentPlayerCreatorDimension = (uint)NAPI.Data.GetWorldData("playerCreatorDimension");
|
||||||
//currentPlayerCreatorDimension++;
|
currentPlayerCreatorDimension++;
|
||||||
//NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
|
NAPI.Data.SetWorldData("playerCreatorDimension", currentPlayerCreatorDimension);
|
||||||
//player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
|
player.Dimension = NAPI.Data.GetWorldData("playerCreatorDimension");
|
||||||
//player.TriggerEvent("toggleCreator");
|
player.TriggerEvent("toggleCreator");
|
||||||
|
|
||||||
player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ);
|
player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user