Files
reallife-gamemode/ReallifeGamemode.Server/Extensions/ListExtensions.cs
2019-05-16 18:35:43 +02:00

17 lines
372 B
C#

using GTANetworkAPI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ReallifeGamemode.Server.Extensions
{
static class ListExtensions
{
public static bool Contains(this List<Client> list, Client client)
{
return list.Any(l => l.Handle.Value == client.Handle.Value);
}
}
}