PlayerDeath-Event hinzugefügt
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,3 +11,5 @@ Properties/*
|
|||||||
|
|
||||||
!.gitkeep
|
!.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