fahrzeug respawn /respaenvehicle (optional id sonst nächstes fahrzeug)
This commit is contained in:
@@ -179,14 +179,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
ticket_amount = player.GetData<int>("ticket_amount");
|
||||
}
|
||||
|
||||
if(player.HasData("pay_amount"))
|
||||
if (player.HasData("pay_amount"))
|
||||
{
|
||||
pay_amount = player.GetData<int>("pay_amount");
|
||||
}
|
||||
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount);
|
||||
|
||||
}
|
||||
player.TriggerEvent("SERVER:InteractionMenu_OpenMenu", JsonConvert.SerializeObject(accountData), factionleader, faction, group, factionInvite, groupInvite, ticket_boolean, ticket_amount, pay_amount);
|
||||
|
||||
}
|
||||
|
||||
[RemoteEvent("keyPress:E")]
|
||||
public void KeyPressE(Player player)
|
||||
@@ -399,7 +399,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
|
||||
List<FactionWeapon> weapons = context.FactionWeapons.Where(w => w.FactionId == user.FactionId).ToList();
|
||||
Database.Entities.Faction faction = context.Factions.Where(fac => fac.Id == user.FactionId).FirstOrDefault();
|
||||
|
||||
|
||||
if (faction.WeaponDealTime > 0)
|
||||
dealTime = "noch " + faction.WeaponDealTime.ToString() + " min. übrig";
|
||||
|
||||
@@ -441,13 +441,15 @@ namespace ReallifeGamemode.Server.Events
|
||||
foreach (var weapon in weapons)
|
||||
{
|
||||
if (weapon.WeaponModel == "Pistol")
|
||||
{
|
||||
{
|
||||
pistol_Amount = weapon.Ammount;
|
||||
}
|
||||
else if(weapon.WeaponModel == "Pistol50"){
|
||||
else if (weapon.WeaponModel == "Pistol50")
|
||||
{
|
||||
pistol50_Amount = weapon.Ammount;
|
||||
}
|
||||
else if(weapon.WeaponModel == "Pistol_MK2") {
|
||||
else if (weapon.WeaponModel == "Pistol_MK2")
|
||||
{
|
||||
Pistol_mk2_Amount = weapon.Ammount;
|
||||
}
|
||||
else if (weapon.WeaponModel == "Combatpistol")
|
||||
@@ -480,7 +482,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
else if (weapon.WeaponModel == "Stungun")
|
||||
{
|
||||
Stungun_Amount = weapon.Ammount;
|
||||
Stungun_Amount = weapon.Ammount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user