static bool checkId(BAGGGBBOHOH __instance, int id) { foreach (BAGGGBBOHOH.FGMBFCIIILC p in __instance.AllPlayers) { if (p.PAGHECLPIMH == id) { return(false); } } return(true); }
public static bool Prefix(ref BAGGGBBOHOH __instance, ref sbyte __result) { //__result = UniquePlayerId++; for (int i = 0; i < 128; i++) { if (checkId(__instance, i)) { __result = (sbyte)i; return(false); } } __result = -1; return(false); }