TEST: gangwar kill message
This commit is contained in:
@@ -16,7 +16,7 @@ using ReallifeGamemode.Services;
|
||||
namespace ReallifeGamemode.Server.Commands
|
||||
{
|
||||
internal class UserCommands : Script
|
||||
{
|
||||
{
|
||||
[Command("eventport", "~m~eventport")]
|
||||
public void CmdUserEventport(Player player, String option = "")
|
||||
{
|
||||
|
||||
@@ -79,6 +79,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
|
||||
var playerInGangwar = player.HasData("inGangWar");
|
||||
var killerInGangwar = killer.HasData("inGangWar");
|
||||
|
||||
if (playerInGangwar && killerInGangwar)
|
||||
{
|
||||
killer.TriggerEvent("setGangwarKillMessage", "Du hast ~r~" + player.Name + " getötet");
|
||||
}
|
||||
|
||||
NAPI.Util.ConsoleOutput($"OnPlayerDeath - Player {player.Name} died - PlayerInGangwar = {playerInGangwar}, KillerInGangwar = {killerInGangwar}");
|
||||
if (playerInGangwar && killerInGangwar)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user