Waffenschaden implementiert Versuch 1

This commit is contained in:
Mac_Slash
2020-04-19 20:00:22 +02:00
parent e6f3399910
commit e65bb5dcce
3 changed files with 88 additions and 33 deletions

View File

@@ -0,0 +1,13 @@
using GTANetworkAPI;
namespace ReallifeGamemode.Server.Util
{
class WeaponDamage : Script
{
[ServerEvent(Event.PlayerWeaponSwitch)]
public void OnPlayerWeaponSwitch(Player player, WeaponHash oldWeapon, WeaponHash newWeapon)
{
NAPI.ClientEvent.TriggerClientEvent(player, "SERVER:WeaponModifier", player);
}
}
}