Files
reallife-gamemode/ReallifeGamemode.Server/Extensions/ListExtensions.cs
2020-05-10 19:19:53 +02:00

15 lines
324 B
C#

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