Exemple #1
0
 public void addUser(UserInGame newuser)
 {
     if (users.Count > 10)
     {
         return;
     }
     if (users.ContainsKey(newuser.steamID))
     {
         return;
     }
     else
     {
         users.Add(newuser.steamID, newuser);
         Serversendgroupmessage(newuser.steamID + " has join game!");
     }
 }
Exemple #2
0
        public void addUser(string id)
        {
            if (users.Count > 10)
            {
                return;
            }
            if (users.ContainsKey(id))
            {
                return;
            }
            else
            {
                UserInGame player = new UserInGame();
                player.steamID = id;
                users.Add(id, player);

                Serversendgroupmessage(id + " has join game!");
            }
        }