public void SendKillNotify(string killerName, string victimName, string weaponId) { if (!NetworkServer.active) { return; } var msgKillNotify = new OpMsgKillNotify(); msgKillNotify.killerName = killerName; msgKillNotify.victimName = victimName; msgKillNotify.weaponId = weaponId; NetworkServer.SendToAll(msgKillNotify.OpId, msgKillNotify); }
public void SendKillNotify(string killerName, string victimName, string weaponId) { if (!IsServer) { return; } var msgKillNotify = new OpMsgKillNotify(); msgKillNotify.killerName = killerName; msgKillNotify.victimName = victimName; msgKillNotify.weaponId = weaponId; ServerSendPacketToAllConnections(0, DeliveryMethod.ReliableOrdered, msgKillNotify.OpId, msgKillNotify); }