PlayerDeath-Event hinzugefügt

This commit is contained in:
2018-09-19 02:43:01 +02:00
parent d2b9013dfb
commit 7c81bb3db5
2 changed files with 27 additions and 1 deletions

2
.gitignore vendored
View File

@@ -11,3 +11,5 @@ Properties/*
!.gitkeep
yolo/*
/mycmds.cs
/Server/Commands/mycmds.cs

24
Server/Events/Death.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GTANetworkAPI;
using GTANetworkMethods;
using reallife_gamemode.Model;
/*
* Author: balbo
*
* */
namespace reallife_gamemode.Server.Events
{
public class Death : Script
{
[ServerEvent(GTANetworkAPI.Event.PlayerDeath)]
public void OnPlayerDeath(Client player, Client killer, uint reason)
{
NAPI.Chat.SendChatMessageToPlayer(player, "Du bist durch " + killer.Name + " gestorben: " + reason.ToString());
}
}
}