PlayerDeath-Event hinzugefügt
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -10,4 +10,6 @@ Properties/*
|
||||
*.user
|
||||
|
||||
!.gitkeep
|
||||
yolo/*
|
||||
yolo/*
|
||||
/mycmds.cs
|
||||
/Server/Commands/mycmds.cs
|
||||
|
||||
24
Server/Events/Death.cs
Normal file
24
Server/Events/Death.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user