Add BankBalance to Infobox; Iprove Player Feedback; Add /gotolist

This commit is contained in:
VegaZ
2018-10-17 22:00:01 +02:00
parent 99d418f12c
commit 59cad13c7f
7 changed files with 120 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ namespace reallife_gamemode.Server.Events
if (user.SocialClubName != player.SocialClubName && user.Password == NAPI.Util.GetHashSha256(password))
{
player.TriggerEvent("loginDeny", "Dieser Benutzer gehört dir nicht!");
//Log einbauen für den bösen Bub.
//TODO ?? Log einbauen für den bösen Bub.
player.Kick();
}
if (user.Password != NAPI.Util.GetHashSha256(password))
@@ -47,7 +47,8 @@ namespace reallife_gamemode.Server.Events
player.SetData("isLoggedIn", true);
player.SetData("spec", true);
player.TriggerEvent("draw", player.Name, player.Handle.Value);
//player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ);
var userBankAccount = loginUser.UserBankAccounts.SingleOrDefault(u => u.UserId == user.Id);
player.SetSharedData("money", userBankAccount.Balance); //Lädt den aktuellen Kontostand des Users aus der DB
}
}
}