Merge branch 'develop' into 'master'
[HOTFIX] Death fix See merge request log-gtav/reallife-gamemode!32
This commit is contained in:
@@ -90,17 +90,20 @@ namespace ReallifeGamemode.Server.Commands
|
||||
[Command("help", "~m~Benutzung: ~s~/help")]
|
||||
public void CmdHelp(Player player)
|
||||
{
|
||||
player.SendChatMessage("E - Interagieren (ATM, Türen, Shops, Friseur etc.");
|
||||
player.SendChatMessage("M - Interaktionsmenü öffnen und schließen");
|
||||
player.SendChatMessage("X - Fahrzeug auf -/ abschließen sowie im Fahrzeuginteraktionsmenü öffnen");
|
||||
player.SendChatMessage("N - Fahrzeugmotor Starten");
|
||||
player.SendChatMessage("O - Onlineliste öffnen / schließen");
|
||||
player.SendChatMessage("I - Inventar öffnen / schließen");
|
||||
player.SendChatMessage("F4 - Mikrofon an/aus schalten");
|
||||
player.SendChatMessage("/skill - Skillpunkte anzeigen");
|
||||
}
|
||||
|
||||
[Command("hup")]
|
||||
public void CmdAnim(Player player)
|
||||
{
|
||||
player.StopAnimation();
|
||||
player.PlayAnimation("mp_am_hold_up", "handsup_base", (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl | AnimationFlags.Cancellable));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace ReallifeGamemode.Server.Finance
|
||||
public static (int, float, float) GetEconomyClass(Player client, int wage)
|
||||
{
|
||||
int bankAccount = client.GetUser().BankAccount.Balance;
|
||||
float financialHelp = -(float)Math.Pow(1.0005, -bankAccount) * -1000;
|
||||
float financialHelp = -(float)Math.Pow(1.0005, -(bankAccount + client.GetUser().Handmoney)) * -1000;
|
||||
float financialInterest = 1 - (float)Math.Pow(1.00006, -wage) * 1;
|
||||
if (financialInterest >= 0.7)
|
||||
financialInterest = 0.7f;
|
||||
@@ -77,7 +77,7 @@ namespace ReallifeGamemode.Server.Finance
|
||||
int vehicleTaxation = GetVehicleTaxation(client);
|
||||
int rentalFees = GetRentalFees(client);
|
||||
|
||||
int healthInsurance = (int)(user.BankAccount.Balance * 0.001);
|
||||
int healthInsurance = (int)((bankAccount + user.Handmoney)* 0.001);
|
||||
if (healthInsurance < 0)
|
||||
{
|
||||
healthInsurance = 0;
|
||||
@@ -108,7 +108,7 @@ namespace ReallifeGamemode.Server.Finance
|
||||
|
||||
public static void ReleasePayDay(Player client, Paycheck paycheck, bool minusJail)
|
||||
{
|
||||
NAPI.Util.ConsoleOutput("in release payday");
|
||||
NAPI.Util.ConsoleOutput("in release payday.");
|
||||
if (client == null || paycheck == null)
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -620,7 +620,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}, delayTime: 30000);
|
||||
}, delayTime: 10000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -795,20 +795,20 @@ namespace ReallifeGamemode.Server.Managers
|
||||
{
|
||||
if (!player.IsLoggedIn()) return;
|
||||
List<Player> players = NAPI.Pools.GetAllPlayers();
|
||||
if (player.GetUser().Wanteds > 0)
|
||||
{
|
||||
|
||||
var listPlayers = players.Select(p => new
|
||||
{
|
||||
Id = p.Handle.Value,
|
||||
p.Name,
|
||||
wanted = p.GetUser().Wanteds,
|
||||
}) ;
|
||||
player.TriggerEvent("showWantedlist", JsonConvert.SerializeObject(listPlayers));
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SendNotification("~r~[Fehler] ~w~Es gibt derzeitig keine Verbrecher!");
|
||||
}
|
||||
|
||||
if(listPlayers.Count() > 0)
|
||||
player.TriggerEvent("showWantedlist", JsonConvert.SerializeObject(listPlayers));
|
||||
else
|
||||
player.SendNotification("~r~[Fehler] ~w~Es gibt derzeitig keine Verbrecher!");
|
||||
|
||||
|
||||
}
|
||||
|
||||
[RemoteEvent("CLIENT:InteractionMenu_FindHouse")]
|
||||
|
||||
@@ -65,10 +65,10 @@ namespace ReallifeGamemode.Server.Services
|
||||
ChatService.SendMessage(c, message);
|
||||
}
|
||||
}
|
||||
else if(user.IsAdmin(AdminLevel.ADMIN) && toAdmins)
|
||||
/*else if(user.IsAdmin(AdminLevel.ADMIN) && toAdmins)
|
||||
{
|
||||
ChatService.SendMessage(c, message);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user