nodmzone, COMMIT NUR ZUM TESTEN

This commit is contained in:
Fabian
2021-04-21 22:35:58 +02:00
parent 4c35539b23
commit 3edd6b5560
7 changed files with 59 additions and 1 deletions

View File

@@ -17,6 +17,13 @@ namespace ReallifeGamemode.Server.Commands
{
internal class UserCommands : Script
{
[Command("nodm", "~m~nodm")]
public void CmdUserNoDm(Player player)
{
ChatService.Broadcast("ss");
player.TriggerEvent("toggleNoDmZone", true);
}
[Command("look", "~m~look")]
public void CmdUserLook(Player player)
{

View File

@@ -9,6 +9,11 @@ namespace ReallifeGamemode.Server.Events
{
internal class PlayerEvent : Script
{
[ServerEvent(Event.PlayerDamage)]
public void OnPlayerDamage(Player player, float healthLoss, float armorLoss) {
ChatService.Broadcast("dmg");
}
[RemoteEvent("CLIENT:SET_InFrontOfPos")]
public void SetFrontOfPos(Player player, Vector3 pos)
{