Hi,
I'm having an issue kicking multiple people at once. Sometimes this method will kick all the players, sometimes it will kick only one, sometimes it will kick half. It seems completely random. I've only been able to test with 4 people so far.
I'm having an issue kicking multiple people at once. Sometimes this method will kick all the players, sometimes it will kick only one, sometimes it will kick half. It seems completely random. I've only been able to test with 4 people so far.
public void kickPlayers()
{
for (int i = 0; i < BasePlayer.activePlayerList.Count; i++)
{
var person = BasePlayer.activePlayerList[i];
for (int o = 0; o < teamIDs.Count; o++)
{
var member = teamIDs[o];
if (person.userID == member)
{
person.Kick("Kicked");
}
}
}
isIn = false;
}Any help would be very much appreciated.