Files
reallife-gamemode/ReallifeGamemode.Server/Extensions/ListExtensions.cs

17 lines
345 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<Player> list, Player client)
{
return list.Any(l => l.Handle.Value == client.Handle.Value);
}
}
}