diff --git a/ReallifeGamemode.Client/Player/weaponlist.ts b/ReallifeGamemode.Client/Player/weaponlist.ts index d9dbd111..f04db4d2 100644 --- a/ReallifeGamemode.Client/Player/weaponlist.ts +++ b/ReallifeGamemode.Client/Player/weaponlist.ts @@ -34,6 +34,11 @@ export default function weaponList(globalData: IGlobalData) { var specialWep = ""; var timer = ""; + mp.events.add('WeaponModifier', (modifier) => { + mp.gui.chat.push("Modifier steht jetzt auf" + modifier); + mp.players.local.setWeaponDamageModifier(modifier); + }); + //Weapon Menu mp.events.add('showWeaponMenu', (primariesArr, secondariesArr, meleesArr, specialsArr, jsonTime) => { diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 5b2a975d..b5f77e8a 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -1602,6 +1602,12 @@ namespace ReallifeGamemode.Server.Commands #endregion #region ALevel1337 + [Command("wepmod", "~m~Benutzung: ~s~/wepmod [Variable]")] + public void CmdWeaponModifier(Player player, float modifier) + { + player.SendChatMessage("Modifier steht auf" + modifier); + player.TriggerEvent("WeaponModifier", modifier); + } [Command("gotocp", "~m~Benutzung: ~s~/gotocp")] public void CmdAdminGotocp(Player admin) {